Vector4.Clamp Method (Vector4, Vector4, Vector4)
Restricts a value to be within a specified range.
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public static Vector4 Clamp (
Vector4 value1,
Vector4 min,
Vector4 max
)
Parameters
- value1
The value to clamp. - min
The minimum value. - max
The maximum value.
Return Value
The clamped value.
See Also
Reference
Vector4 Structure
Vector4 Members
Microsoft.Xna.Framework Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista