Function nalgebra_glm::orientation
source ยท pub fn orientation<T: RealNumber>(normal: &TVec3<T>, up: &TVec3<T>) -> TMat4<T>
Expand description
Build the rotation matrix needed to align normal
and up
.
pub fn orientation<T: RealNumber>(normal: &TVec3<T>, up: &TVec3<T>) -> TMat4<T>
Build the rotation matrix needed to align normal
and up
.