QuaternionBarycentric Method (Quaternion, Quaternion, Quaternion, Single, Single, Quaternion)

RAGE Plugin Hook Documentation

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

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

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

public static void Barycentric(
	ref Quaternion source1,
	ref Quaternion source2,
	ref Quaternion source3,
	float weight1,
	float weight2,
	out Quaternion result
)

Parameters

source1
Type: RageQuaternion
A Quaternion containing the 4D Cartesian coordinates of vertex 1 of the triangle.
source2
Type: RageQuaternion
A Quaternion containing the 4D Cartesian coordinates of vertex 2 of the triangle.
source3
Type: RageQuaternion
A Quaternion containing the 4D Cartesian coordinates of vertex 3 of the triangle.
weight1
Type: SystemSingle
Barycentric coordinate b2, which expresses the weighting factor toward vertex 2 (specified in source2).
weight2
Type: SystemSingle
Barycentric coordinate b3, which expresses the weighting factor toward vertex 3 (specified in source3).
result
Type: RageQuaternion
When the method completes, contains a new Quaternion containing the 4D Cartesian coordinates of the specified point.
See Also

Reference