| GeometryHelperGetDistance Method (Aabb, Aabb) |
Computes the distance between the two axis-aligned bounding boxes (AABBs).
Namespace: DigitalRune.GeometryAssembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax public static float GetDistance(
Aabb aabbA,
Aabb aabbB
)
Public Shared Function GetDistance (
aabbA As Aabb,
aabbB As Aabb
) As Single
public:
static float GetDistance(
Aabb aabbA,
Aabb aabbB
)
static member GetDistance :
aabbA : Aabb *
aabbB : Aabb -> float32
Parameters
- aabbA
- Type: DigitalRune.Geometry.ShapesAabb
The first AABB. - aabbB
- Type: DigitalRune.Geometry.ShapesAabb
The second AABB.
Return Value
Type:
Single
The distance between the two AABBs. 0 if the AABB are touching or intersecting.
See Also