Creates a world ray that starts on the user screen at given coordinates and continues in the direction from the observer.

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

Syntax

C#
public XRay GetWorldRay(
	int x,
	int y
)

Parameters

x
Type: System..::.Int32
X coordinate in the view.
y
Type: System..::.Int32
Y coordinate in the view.

Return Value

Returns the newly created ray.

See Also