Skip to main content

look_at_mat3a

Function look_at_mat3a 

Source
pub fn look_at_mat3a(eye: Vec3, center: Vec3, up: Vec3) -> Mat3A
Expand description

Returns a Mat3A view rotation (no translation) from eye, focal point, and up.

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

ยงPanics

Will panic if up is not normalized when glam_assert is enabled.