Vector4Barycentric Method (Vector4, Vector4, Vector4, Single, Single, Vector4)

RAGE Plugin Hook Documentation

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

Returns a Vector4 containing the 4D Cartesian coordinates of a point specified in Barycentric coordinates relative to a 4D triangle.

Namespace:  Rage
Assembly:  RagePluginHook (in RagePluginHook.dll) Version: 0.0.0.0 (0.56.1131.11510)
Syntax

public static void Barycentric(
	ref Vector4 value1,
	ref Vector4 value2,
	ref Vector4 value3,
	float amount1,
	float amount2,
	out Vector4 result
)

Parameters

value1
Type: RageVector4
A Vector4 containing the 4D Cartesian coordinates of vertex 1 of the triangle.
value2
Type: RageVector4
A Vector4 containing the 4D Cartesian coordinates of vertex 2 of the triangle.
value3
Type: RageVector4
A Vector4 containing the 4D 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: RageVector4
When the method completes, contains the 4D Cartesian coordinates of the specified point.
See Also

Reference