Vector4Clamp Method (Vector4, Vector4, Vector4, Vector4)

RAGE Plugin Hook Documentation

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

Restricts a value to be within a specified range.

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

public static void Clamp(
	ref Vector4 value,
	ref Vector4 min,
	ref Vector4 max,
	out Vector4 result
)

Parameters

value
Type: RageVector4
The value to clamp.
min
Type: RageVector4
The minimum value.
max
Type: RageVector4
The maximum value.
result
Type: RageVector4
When the method completes, contains the clamped value.
See Also

Reference