| GeometryHelperGetBarycentricFromPoint Method (Triangle, Vector3F, Single, Single, Single) |
Gets the barycentric coordinates of a point and a triangle.
Namespace: DigitalRune.GeometryAssembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax public static void GetBarycentricFromPoint(
Triangle triangle,
Vector3F point,
out float u,
out float v,
out float w
)
Public Shared Sub GetBarycentricFromPoint (
triangle As Triangle,
point As Vector3F,
<OutAttribute> ByRef u As Single,
<OutAttribute> ByRef v As Single,
<OutAttribute> ByRef w As Single
)
public:
static void GetBarycentricFromPoint(
Triangle triangle,
Vector3F point,
[OutAttribute] float% u,
[OutAttribute] float% v,
[OutAttribute] float% w
)
static member GetBarycentricFromPoint :
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.
Remarks
The point is projected into the plane of the triangle
and the barycentric coordinates are computed for the project point.
See Also