| GeometryHelperHaveContact Method (Aabb, Vector3F, Pose, Boolean) |
Determines whether the axis-aligned bounding box (AABB) and a box have contact.
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,
Vector3F boxExtent,
Pose boxPose,
bool makeEdgeTests
)
Public Shared Function HaveContact (
aabb As Aabb,
boxExtent As Vector3F,
boxPose As Pose,
makeEdgeTests As Boolean
) As Boolean
public:
static bool HaveContact(
Aabb aabb,
Vector3F boxExtent,
Pose boxPose,
bool makeEdgeTests
)
static member HaveContact :
aabb : Aabb *
boxExtent : Vector3F *
boxPose : Pose *
makeEdgeTests : bool -> bool
Parameters
- aabb
- Type: DigitalRune.Geometry.ShapesAabb
The axis-aligned bounding box (AABB). - boxExtent
- Type: DigitalRune.Mathematics.AlgebraVector3F
The box extent (the widths in x, y, and z). - boxPose
- Type: DigitalRune.GeometryPose
The pose of the box in the space of the AABB. - makeEdgeTests
- Type: SystemBoolean
If set to the 9 edge-edge tests of the separating-axis-test (SAT) are
performed; otherwise, the edge-edge tests are left out and the returned value is
conservative, which means that a contact can be reported even if there is no contact.
Return Value
Type:
Boolean if the AABB and the box are touching or penetrating; otherwise,
if the object are separated.
See Also