Click or drag to resize
DigitalRuneGeometryHelperHaveContact Method (Aabb, Ray, Single)
Determines whether the given axis-aligned bounding box (AABB) and ray overlap.

Namespace: DigitalRune.Geometry
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
public static bool HaveContact(
	Aabb aabb,
	Ray ray,
	float epsilon
)

Parameters

aabb
Type: DigitalRune.Geometry.ShapesAabb
The axis-aligned bounding box (AABB).
ray
Type: DigitalRune.Geometry.ShapesRay
The ray.
epsilon
Type: SystemSingle
A small epsilon value by which the AABB is extended to avoid missing contacts because of numerical problems. (Especially in ray vs. triangle mesh tests, we do not want to miss collisions between triangle.)

Return Value

Type: Boolean
if the AABB and the ray have a contact; otherwise, .
See Also