Function lambda::math::matrix::rotate_matrix
source · pub fn rotate_matrix<InputVector: Vector<Scalar = f32>, ResultingVector: Vector<Scalar = f32>, OutputMatrix: Matrix<ResultingVector> + Default + Clone>(
matrix_to_rotate: OutputMatrix,
axis_to_rotate: InputVector,
angle_in_turns: f32
) -> OutputMatrix
Expand description
Rotates the input matrix by the given number of turns around the given axis. The axis must be a unit vector and the turns must be in the range [0, 1). The rotation is counter-clockwise when looking down the axis.