Click or drag to resize
Vector3Barycentric Method (Vector3, Vector3, Vector3, Single, Single, Vector3)

[This is preliminary documentation and is subject to change.]

Returns a Vector3 containing the 3D Cartesian coordinates of a point specified in barycentric (areal) coordinates relative to a 3D triangle.

Namespace: VRageMath
Assembly: VRage.Math (in VRage.Math.dll) Version: 1.0.0.0
Syntax
C#
public static void Barycentric(
	ref Vector3 value1,
	ref Vector3 value2,
	ref Vector3 value3,
	float amount1,
	float amount2,
	out Vector3 result
)

Parameters

value1
Type: VRageMathVector3
A Vector3 containing the 3D Cartesian coordinates of vertex 1 of the triangle.
value2
Type: VRageMathVector3
A Vector3 containing the 3D Cartesian coordinates of vertex 2 of the triangle.
value3
Type: VRageMathVector3
A Vector3 containing the 3D Cartesian coordinates of vertex 3 of the triangle.
amount1
Type: SystemSingle
Barycentric coordinate b2, which expresses the weighting factor toward vertex 2 (specified in value2).
amount2
Type: SystemSingle
Barycentric coordinate b3, which expresses the weighting factor toward vertex 3 (specified in value3).
result
Type: VRageMathVector3
[OutAttribute] The 3D Cartesian coordinates of the specified point are placed in this Vector3 on exit.
See Also