| GeometryHelperGetClosestPoint 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.GeometryAssembly: 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
)
Public Shared Sub GetClosestPoint (
triangle As Triangle,
point As Vector3F,
<OutAttribute> ByRef u As Single,
<OutAttribute> ByRef v As Single,
<OutAttribute> ByRef w As Single
)
public:
static void GetClosestPoint(
Triangle triangle,
Vector3F point,
[OutAttribute] float% u,
[OutAttribute] float% v,
[OutAttribute] float% w
)
static member GetClosestPoint :
triangle : Triangle *
point : Vector3F *
u : float32 byref *
v : float32 byref *
w : float32 byref -> unit
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