from_axis_angle

Function from_axis_angle 

Source
pub fn from_axis_angle<E, Vec3>(
    axis: Vec3,
    angle: f32,
) -> Mat3<E, DescriptorOrderColumnMajor>
where E: MatEl + NdFloat, Vec3: VectorIter<E, 3>, Mat3<E, DescriptorOrderColumnMajor>: RawSliceMut<Scalar = E>,
Expand description

Creates a 3x3 rotation matrix from an axis and an angle.

ยงArguments

  • axis - The axis of rotation, which should be a normalized 3D vector.
  • angle - The rotation angle in radians.