Function nyx_space::utils::rotv

source ·
pub fn rotv(v: &Vector3<f64>, axis: &Vector3<f64>, theta: f64) -> Vector3<f64>
Expand description

Rotate a vector about a given axis

§Arguments

  • v - A vector to be rotated.
  • axis - The axis around which to rotate the vector.
  • theta - The angle by which to rotate the vector.

§Returns

A new vector that is the result of rotating v around axis by theta radians.