Click or drag to resize
DigitalRuneGeometryHelperGetClosestPoint Method (Triangle, Vector3F, Single, Single, Single)
Gets the barycentric coordinates (u, v, w of the point in a triangle which is closest to the given point).

Namespace: DigitalRune.Geometry
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
public static void GetClosestPoint(
	Triangle triangle,
	Vector3F point,
	out float u,
	out float v,
	out float w
)

Parameters

triangle
Type: DigitalRune.Geometry.ShapesTriangle
The triangle.
point
Type: DigitalRune.Mathematics.AlgebraVector3F
The point.
u
Type: SystemSingle
The barycentric coordinate u.
v
Type: SystemSingle
The barycentric coordinate v.
w
Type: SystemSingle
The barycentric coordinate w.
See Also