Skip to main content

look_to_mat3a

Function look_to_mat3a 

Source
pub fn look_to_mat3a(dir: Vec3, up: Vec3) -> Mat3A
Expand description

Returns a Mat3A view rotation (no translation) from direction and up.

Transforms right-handed world space points into right-handed Y-up view space.

ยงPanics

Will panic if dir or up are not normalized when glam_assert is enabled.