[This is preliminary documentation and is subject to change.]

Unproject a specified screen X, Y coordinate into 3D space. This function reads in the actual OpenGL screen projection to work correctly

Namespace:  IcarusSceneEngine
Assembly:  IcarusSceneEngine (in IcarusSceneEngine)
Version: 1.0.0.0

Syntax

C#
public static Vector GlUnproject(
	int ScreenX,
	int ScreenY,
	float DefaultZ
)

Parameters

ScreenX
Type: System..::.Int32
The 2D x coordinate
ScreenY
Type: System..::.Int32
The 2D Y coordinate
DefaultZ
Type: System..::.Single
If less than 0, then read the Z value from the screen, else use that as the Z-depth into the screen

Return Value

A 3D Vector representing the best-guess coordinate

See Also