Function nalgebra_glm::project
source · pub fn project<N: Real>(
obj: &TVec3<N>,
model: &TMat4<N>,
proj: &TMat4<N>,
viewport: TVec4<N>
) -> TVec3<N>
Expand description
Map the specified object coordinates (obj.x, obj.y, obj.z)
into window coordinates with a
depth range of -1 to 1
Parameters:
obj
- Specify the object coordinates.model
- Specifies the current modelview matrix.proj
- Specifies the current projection matrix.viewport
- Specifies the current viewport.