Skip to main content

look_to_quat

Function look_to_quat 

Source
pub fn look_to_quat(dir: DVec3, up: DVec3) -> DQuat
Expand description

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