Click or drag to resize
Vector2Barycentric Method
Creates a new Vector2 that contains the cartesian coordinates of a vector specified in barycentric coordinates and relative to 2d-triangle.

Namespace: SampSharp.GameMode
Assembly: SampSharp.GameMode (in SampSharp.GameMode.dll) Version: 0.7.6221.37952
Syntax
public static Vector2 Barycentric(
	Vector2 value1,
	Vector2 value2,
	Vector2 value3,
	float amount1,
	float amount2
)

Parameters

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

Return Value

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