Function orthonormal_basis_from_vec

Source
pub fn orthonormal_basis_from_vec(axis: Vector) -> Rotation
Expand description

Computes the rotation matrix of the orthonormal basis computed from the given axis.

The axis must be a unit vector.