Click or drag to resize

Vector2Lerp Method

Creates a new Vector2 that contains linear interpolation of the specified vectors.

Namespace:  SampSharp.Entities.SAMP
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-local+709673996c0cc3c0733358a87691d1009326afa7
Syntax
C#
public static Vector2 Lerp(
	Vector2 value1,
	Vector2 value2,
	float amount
)

Parameters

value1
Type: SampSharp.Entities.SAMPVector2
The first vector.
value2
Type: SampSharp.Entities.SAMPVector2
The second vector.
amount
Type: SystemSingle
Weighting value(between 0.0 and 1.0).

Return Value

Type: Vector2
The result of linear interpolation of the specified vectors.
See Also