Click or drag to resize
DigitalRuneGeometryHelperGetClosestPoint 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.Geometry
Assembly: 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
)

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