Function base::math::random_vec_with_angle
[−]
[src]
pub fn random_vec_with_angle<R: Rng>(rng: &mut R, v: Vector3f, angle: f32) -> Vector3f
Generates a random Vector3f
that has a specific angle to v
.
The resulting vector will have a random rotation around v
.