Vector2Clamp Method (Vector2, Vector2, Vector2)

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 Vector2 Clamp(
	Vector2 value,
	Vector2 min,
	Vector2 max
)

Parameters

value
Type: RageVector2
The value to clamp.
min
Type: RageVector2
The minimum value.
max
Type: RageVector2
The maximum value.

Return Value

Type: Vector2
The clamped value.
See Also

Reference