Click or drag to resize
Vector3Clamp Method (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 Vector3 Clamp(
	Vector3 value1,
	Vector3 min,
	Vector3 max
)

Parameters

value1
Type: VRageMathVector3
The value to clamp.
min
Type: VRageMathVector3
The minimum value.
max
Type: VRageMathVector3
The maximum value.

Return Value

Type: Vector3

[Missing <returns> documentation for "M:VRageMath.Vector3.Clamp(VRageMath.Vector3,VRageMath.Vector3,VRageMath.Vector3)"]

See Also