Click or drag to resize
Ab4d.SharpEngine logo

RayRayIntersectsBox Method

Determines whether there is an intersection between this ray and a BoundingBox.

Namespace: Ab4d.SharpEngine.Common
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public bool RayIntersectsBox(
	ref BoundingBox box,
	out float distance
)

Parameters

box  BoundingBox
The box to test.
distance  Single
When the method completes, contains the distance of the intersection, or 0 if there was no intersection.

Return Value

Boolean
Whether the two objects intersected.
See Also