Skip to main content

look_to_mat4

Function look_to_mat4 

Source
pub fn look_to_mat4(eye: Vec3, dir: Vec3, up: Vec3) -> Mat4
Expand description

Returns a Mat4 view matrix 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.