[][src]Function nalgebra_glm::project_no

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

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)


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

See also: