Converts the view coordinates to world coordinates using intersection of the ray coming from the observer to the world space.

Namespace:  SGP.XSpace
Assembly:  SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825

Syntax

C#
public Vector3 Convert2DTo3D(
	int x,
	int y,
	out XSprite sprite
)

Parameters

x
Type: System..::.Int32
The view X coordinate.
y
Type: System..::.Int32
The view Y coordinate.
sprite
Type: SGP.XSpace..::.XSprite %
Receives the first sprite XSprite intersected by the ray.

Return Value

Returns coordinates in the space.

See Also