Click or drag to resize
DigitalRuneGeometryHelperGetBarycentricFromPoint Method (Triangle, Vector3F, Single, Single, Single)
Determines whether the projection of a point (into the triangle plane) is inside the given triangle. (This overload uses per-reference parameters for performance.)

Namespace: DigitalRune.Geometry
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
[CLSCompliantAttribute(false)]
public static void GetBarycentricFromPoint(
	ref Triangle triangle,
	ref 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.
Remarks
The point is projected into the plane of the triangle and the barycentric coordinates are computed for the project point.
See Also