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

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

Parameters

value1
Type: System.Numerics::Vector4

The vector to restrict.

min
Type: System.Numerics::Vector4

The minimum value.

max
Type: System.Numerics::Vector4

The maximum value.

Return Value

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