pub fn project<T>(
obj: &Matrix<T, Const<3>, Const<1>, ArrayStorage<T, 3, 1>>,
model: &Matrix<T, Const<4>, Const<4>, ArrayStorage<T, 4, 4>>,
proj: &Matrix<T, Const<4>, Const<4>, ArrayStorage<T, 4, 4>>,
viewport: Matrix<T, Const<4>, Const<1>, ArrayStorage<T, 4, 1>>,
) -> Matrix<T, Const<3>, Const<1>, ArrayStorage<T, 3, 1>>where
T: RealNumber,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.