Click or drag to resize

Vector3Barycentric Method

Creates a new Vector3 that contains the cartesian coordinates of a vector specified in barycentric coordinates and relative to 3d-triangle.

Namespace:  SampSharp.Entities.SAMP
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public static Vector3 Barycentric(
	Vector3 value1,
	Vector3 value2,
	Vector3 value3,
	float amount1,
	float amount2
)

Parameters

value1
Type: SampSharp.Entities.SAMPVector3
The first vector of 3d-triangle.
value2
Type: SampSharp.Entities.SAMPVector3
The second vector of 3d-triangle.
value3
Type: SampSharp.Entities.SAMPVector3
The third vector of 3d-triangle.
amount1
Type: SystemSingle
Barycentric scalar b2 which represents a weighting factor towards second vector of 3d-triangle.
amount2
Type: SystemSingle
Barycentric scalar b3 which represents a weighting factor towards third vector of 3d-triangle.

Return Value

Type: Vector3
The cartesian translation of barycentric coordinates.
See Also