pub fn unproject<T>(
win: &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 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.