Function glm::ext::look_at [] [src]

pub fn look_at<T>(
    eye: Vector3<T>,
    center: Vector3<T>,
    up: Vector3<T>
) -> Matrix4<T> where
    T: BaseFloat + GenFloat<T>, 

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

View matrix is based on the eye position of the camera, center position where the camera is looking at and a normalized up vector, how the camera is oriented. Typically (0, 0, 1)