Function nalgebra_glm::project_no[][src]

pub fn project_no<T: RealField>(
    obj: &TVec3<T>,
    model: &TMat4<T>,
    proj: &TMat4<T>,
    viewport: TVec4<T>
) -> TVec3<T>
Expand description

Map the specified object coordinates (obj.x, obj.y, obj.z) into window coordinates.

The near and far clip planes correspond to z normalized device coordinates of -1 and +1 respectively. (OpenGL clip volume definition)

Parameters:

  • obj - Specify the object coordinates.
  • model - Specifies the current modelview matrix.
  • proj - Specifies the current projection matrix.
  • viewport - Specifies the current viewport.

See also: