Click or drag to resize

Vector4Clamp 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 Vector4 Clamp(
	Vector4 value1,
	Vector4 min,
	Vector4 max
)

Parameters

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

Return Value

Type: Vector4
The clamped value.
See Also