[][src]Function rusty_engine::prelude::rand_in_square

pub fn rand_in_square<T>(
    dimension: f32,
    rng: &mut T
) -> Matrix<f32, U2, U1, <DefaultAllocator as Allocator<f32, U2, U1>>::Buffer> where
    T: Rng

Given a length of a side of a square centered at (0.0, 0.0), return a Vec2 that resides somewhere within it.