Click or drag to resize

Vector2Hermite Method

Creates a new Vector2 that contains hermite spline interpolation.

Namespace:  SampSharp.Entities.SAMP
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public static Vector2 Hermite(
	Vector2 value1,
	Vector2 tangent1,
	Vector2 value2,
	Vector2 tangent2,
	float amount
)

Parameters

value1
Type: SampSharp.Entities.SAMPVector2
The first position vector.
tangent1
Type: SampSharp.Entities.SAMPVector2
The first tangent vector.
value2
Type: SampSharp.Entities.SAMPVector2
The second position vector.
tangent2
Type: SampSharp.Entities.SAMPVector2
The second tangent vector.
amount
Type: SystemSingle
Weighting factor.

Return Value

Type: Vector2
The hermite spline interpolation vector.
See Also