Click or drag to resize

MathHelperCatmullRom Method

Performs a Catmull-Rom interpolation using the specified positions.

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

Parameters

value1
Type: SystemSingle
The first position in the interpolation.
value2
Type: SystemSingle
The second position in the interpolation.
value3
Type: SystemSingle
The third position in the interpolation.
value4
Type: SystemSingle
The fourth position in the interpolation.
amount
Type: SystemSingle
Weighting factor.

Return Value

Type: Single
A position that is the result of the Catmull-Rom interpolation.
See Also