Skip to main content

look_to_mat3

Function look_to_mat3 

Source
pub fn look_to_mat3(dir: Vec3, up: Vec3) -> Mat3
Expand description

Returns a Mat3 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.