Skip to main content

look_at_mat4

Function look_at_mat4 

Source
pub fn look_at_mat4(eye: DVec3, center: DVec3, up: DVec3) -> DMat4
Expand description

Returns a DMat4 view matrix from eye, focal point, and up.

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

ยงPanics

Will panic if up is not normalized when glam_assert is enabled.