Click or drag to resize
Vector3Clamp Method (Vector3, Vector3, Vector3, Vector3)

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

Restricts a value to be within a specified range.

Namespace: VRageMath
Assembly: VRage.Math (in VRage.Math.dll) Version: 1.0.0.0
Syntax
C#
public static void Clamp(
	ref Vector3 value1,
	ref Vector3 min,
	ref Vector3 max,
	out Vector3 result
)

Parameters

value1
Type: VRageMathVector3
The value to clamp.
min
Type: VRageMathVector3
The minimum value.
max
Type: VRageMathVector3
The maximum value.
result
Type: VRageMathVector3
[OutAttribute] The clamped value.
See Also