Skip to main content

look_to_affine3

Function look_to_affine3 

Source
pub fn look_to_affine3(eye: DVec3, dir: DVec3, up: DVec3) -> DAffine3
Expand description

Returns an DAffine3 view transform from eye, forward 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.