Creates the ray and performs the intersection with the 3D world.

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

Syntax

C#
[DefaultMethodAttribute]
public Vector3 RayIntersect(
	float x,
	float y,
	float z,
	float vx,
	float vy,
	float vz
)

Parameters

x
Type: System..::.Single
The X coordinate of the ray origin.
y
Type: System..::.Single
The Y coordinate of the ray origin.
z
Type: System..::.Single
The Z coordinate of the ray origin.
vx
Type: System..::.Single
The ray direction in the X axis.
vy
Type: System..::.Single
The ray direction in the Y axis.
vz
Type: System..::.Single
The ray direction in the Z axis.

Return Value

Returns the coordinates that the ray was pointed to.

See Also