Skip to main content

look_to_affine3

Function look_to_affine3 

Source
pub fn look_to_affine3(eye: Vec3, dir: Vec3, up: Vec3) -> Affine3
Expand description

Returns an Affine3 view transform from eye, forward direction, and up.

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

ยงPanics

Will panic if dir or up are not normalized when glam_assert is enabled.