Function nalgebra_glm::look_at[][src]

pub fn look_at<N: Real>(
    eye: &TVec3<N>,
    center: &TVec3<N>,
    up: &TVec3<N>
) -> TMat4<N>

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)