| GeometryHelperHaveContact Method (Aabb, Ray, Single) |
Determines whether the given axis-aligned bounding box (AABB) and ray overlap.
Namespace: DigitalRune.GeometryAssembly: 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
)
Public Shared Function HaveContact (
aabb As Aabb,
ray As Ray,
epsilon As Single
) As Boolean
public:
static bool HaveContact(
Aabb aabb,
Ray ray,
float epsilon
)
static member HaveContact :
aabb : Aabb *
ray : Ray *
epsilon : float32 -> bool
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