lookat

Function lookat 

Source
pub fn lookat<T>(
    eye: &Vector3<T>,
    dest: &Vector3<T>,
    up: &Vector3<T>,
) -> Matrix4<T>
where T: FloatScalar,
Expand description

Creates a view matrix looking from eye position to target.

ยงParameters

  • eye: Camera position
  • dest: Target position to look at
  • up: Up vector (typically (0, 1, 0))

The resulting matrix transforms from world space to view space.