rot

Function rot 

Source
pub fn rot<E>(angle_radians: E) -> Mat2<E, DescriptorOrderColumnMajor>
Expand description

Produces a 2D rotation matrix for a given angle in radians.

§Parameters

  • angle_radians: The angle of rotation in radians.

§Returns

  • Mat<E, 2, 2>: A 2x2 rotation matrix.