Click or drag to resize

Vector3Clamp Method

Clamps the specified value within a range.

Namespace:  SampSharp.Entities.SAMP
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public static Vector3 Clamp(
	Vector3 value1,
	Vector3 min,
	Vector3 max
)

Parameters

value1
Type: SampSharp.Entities.SAMPVector3
The value to clamp.
min
Type: SampSharp.Entities.SAMPVector3
The min value.
max
Type: SampSharp.Entities.SAMPVector3
The max value.

Return Value

Type: Vector3
The clamped value.
See Also