Click or drag to resize

MathAlgorithmsCalculateBarycentricCoordinates Method (Vector3F, Vector3F, Vector3F, Vector3F, Single, Single, Single)

Computes barycentric coordinates (u, v, w) for point with respect to triangle.

Namespace:  NeoAxis
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public static void CalculateBarycentricCoordinates(
	ref Vector3F vertex0,
	ref Vector3F vertex1,
	ref Vector3F vertex2,
	ref Vector3F point,
	out float u,
	out float v,
	out float w
)

Parameters

vertex0
Type: NeoAxisVector3F
vertex1
Type: NeoAxisVector3F
vertex2
Type: NeoAxisVector3F
point
Type: NeoAxisVector3F
u
Type: SystemSingle
v
Type: SystemSingle
w
Type: SystemSingle
See Also