Function nalgebra_glm::unproject

source ·
pub fn unproject<T: RealNumber>(
    win: &TVec3<T>,
    model: &TMat4<T>,
    proj: &TMat4<T>,
    viewport: TVec4<T>
) -> TVec3<T>
Expand description

Map the specified window coordinates (win.x, win.y, win.z) into object coordinates using a depth range of -1 to 1

Parameters:

  • obj - Specify the window coordinates to be mapped.
  • model - Specifies the current modelview matrix.
  • proj - Specifies the current projection matrix.
  • viewport - Specifies the current viewport.

See also: