Function nalgebra_glm::unproject_no
source · pub fn unproject_no<N: Real>(
win: &TVec3<N>,
model: &TMat4<N>,
proj: &TMat4<N>,
viewport: TVec4<N>
) -> TVec3<N>
Expand description
Map the specified window coordinates (win.x, win.y, win.z) into object 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 window coordinates to be mapped.model
- Specifies the current modelview matrix.proj
- Specifies the current projection matrix.viewport
- Specifies the current viewport.