Skip to main content

look_at_mat3

Function look_at_mat3 

Source
pub fn look_at_mat3(eye: DVec3, center: DVec3, up: DVec3) -> DMat3
Expand description

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

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

ยงPanics

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