Function look_at

Source
pub fn look_at<T: RealNumber>(
    eye: &TVec3<T>,
    center: &TVec3<T>,
    up: &TVec3<T>,
) -> TMat4<T>
Expand description

Build a look at view matrix based on the right handedness.

§Parameters:

  • eye − Position of the camera.
  • center − Position where the camera is looking at.
  • u − Normalized up vector, how the camera is oriented. Typically (0, 1, 0).

§See also: