Function unproject3
Source pub fn unproject3<T>(
world: &Matrix4<T>,
persp: &Matrix4<T>,
lb: &Vector2<T>,
rt: &Vector2<T>,
pt: &Vector3<T>,
) -> Vector3<T>
Expand description
Unprojects screen coordinates back to 3D world space.
§Parameters
world
: World transformation matrix
persp
: Perspective projection matrix
lb
: Screen left-bottom corner
rt
: Screen right-top corner
pt
: Screen point with z-depth
§Returns
The corresponding 3D world point