Vector3Clamp Method (Vector3, Vector3, Vector3)

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

Parameters

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

Return Value

Type: Vector3
The clamped value.
See Also

Reference