Tests whether the ray ray intersects this box.

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

Syntax

C#
public bool Intersect(
	XRay ray,
	ref Vector3 point,
	ref float distanceSq
)

Parameters

ray
Type: SGP.XSpace..::.XRay
The XRay ray being tested.
point
Type: Vector3 %
Returns the Vector3 point of intersection.
distanceSq
Type: System..::.Single %
Returns the squared distance from the ray start to the point of intersection.

Return Value

Returns trueTruetruetrue (True in Visual Basic) if the ray intersects this box.

See Also