Windows apps
Collapse the table of content
Expand the table of content

Vector3::Clamp Method

Restricts a vector between a minimum and a maximum value.

Namespace:  System.Numerics
Assembly:  System.Numerics.Vectors (in System.Numerics.Vectors.dll)

public:
static Vector3 Clamp(
	Vector3 value1, 
	Vector3 min, 
	Vector3 max
)

Parameters

value1
Type: System.Numerics::Vector3

The vector to restrict.

min
Type: System.Numerics::Vector3

The minimum value.

max
Type: System.Numerics::Vector3

The maximum value.

Return Value

Type: System.Numerics::Vector3
The restricted vector.
Show:
© 2017 Microsoft