ComponentOne Bitmap for WPF
Clamp Method (Vector2)

C1.WPF.DX.4 Assembly > C1.Util.DX Namespace > Vector2 Structure : Clamp Method
The vector to restrict.
The minimum value.
The maximum value.
Restricts a vector between a minimum and a maximum value.
Syntax
'Declaration
 
Public Shared Function Clamp( _
   ByVal value As Vector2, _
   ByVal min As Vector2, _
   ByVal max As Vector2 _
) As Vector2
public static Vector2 Clamp( 
   Vector2 value,
   Vector2 min,
   Vector2 max
)

Parameters

value
The vector to restrict.
min
The minimum value.
max
The maximum value.

Return Value

The restricted vector.
See Also

Reference

Vector2 Structure
Vector2 Members