Skip to main content

look_at_quat

Function look_at_quat 

Source
pub fn look_at_quat(eye: DVec3, center: DVec3, up: DVec3) -> DQuat
Expand description

Returns a DQuat view rotation 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.