[This is preliminary documentation and is subject to change.]
Performs a linear interpolation between two vectors.
Namespace: Rage
Assembly: RagePluginHook (in RagePluginHook.dll) Version: 0.0.0.0 (0.56.1131.11510)
Syntax
public static void Lerp( ref Vector4 start, ref Vector4 end, float amount, out Vector4 result )
Parameters
- start
- Type: RageVector4
Start vector. - end
- Type: RageVector4
End vector. - amount
- Type: SystemSingle
Value between 0 and 1 indicating the weight of end. - result
- Type: RageVector4
When the method completes, contains the linear interpolation of the two vectors.
Remarks
start + (end - start) * amount
See Also