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

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 Quaternion Barycentric(
	Quaternion source1,
	Quaternion source2,
	Quaternion source3,
	float weight1,
	float weight2
)

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).

Return Value

Type: Quaternion
A new Quaternion containing the 4D Cartesian coordinates of the specified point.
See Also

Reference