Method ClampToMaxLength
ClampToMaxLength(float, ref float3)
Clamps the vector to to maximum length.
Declaration
public static void ClampToMaxLength(float maxLength, ref float3 vector)
Parameters
Type | Name | Description |
---|---|---|
float | maxLength | The maximum length. |
float3 | vector | [in,out] The vector to be clamped. |