| GeometryHelperGetClosestPoint Method (Aabb, Vector3F, Vector3F) |
Gets the point on or in an axis-aligned bounding box (AABB) that is closest to a given
point.
Namespace: DigitalRune.GeometryAssembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax public static bool GetClosestPoint(
Aabb aabb,
Vector3F point,
out Vector3F pointOnAabb
)
Public Shared Function GetClosestPoint (
aabb As Aabb,
point As Vector3F,
<OutAttribute> ByRef pointOnAabb As Vector3F
) As Boolean
public:
static bool GetClosestPoint(
Aabb aabb,
Vector3F point,
[OutAttribute] Vector3F% pointOnAabb
)
static member GetClosestPoint :
aabb : Aabb *
point : Vector3F *
pointOnAabb : Vector3F byref -> bool
Parameters
- aabb
- Type: DigitalRune.Geometry.ShapesAabb
The AABB. - point
- Type: DigitalRune.Mathematics.AlgebraVector3F
The point. - pointOnAabb
- Type: DigitalRune.Mathematics.AlgebraVector3F
The point on or in aabb that is closest to point.
Return Value
Type:
Boolean if the
aabb and
point have
contact (
pointOnAabb is identical to
point);
otherwise,
.
See Also