rotation_from_axis_angle

Function rotation_from_axis_angle 

Source
pub fn rotation_from_axis_angle<T>(axis: &Vector3<T>, angle: T) -> Matrix4<T>
where T: FloatScalar,
Expand description

Creates a 4x4 rotation matrix from an axis and angle.

ยงParameters

  • axis: The rotation axis (will be normalized)
  • angle: The rotation angle in radians