MatrixLerp Method (Matrix, Matrix, Single)

RAGE Plugin Hook Documentation

[This is preliminary documentation and is subject to change.]

Performs a linear interpolation between two matricies.

Namespace:  Rage
Assembly:  RagePluginHook (in RagePluginHook.dll) Version: 0.0.0.0 (0.56.1131.11510)
Syntax

public static Matrix Lerp(
	Matrix start,
	Matrix end,
	float amount
)

Parameters

start
Type: RageMatrix
Start matrix.
end
Type: RageMatrix
End matrix.
amount
Type: SystemSingle
Value between 0 and 1 indicating the weight of end.

Return Value

Type: Matrix
The linear interpolation of the two matrices.
Remarks

This method performs the linear interpolation based on the following formula.
start + (end - start) * amount
Passing amount a value of 0 will cause start to be returned; a value of 1 will cause end to be returned.
See Also

Reference