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