Share via


Vector3.Clamp Method (Vector3, Vector3, Vector3, Vector3)

Restricts a value to be within a specified range.

Syntax

'Declaration
Public Shared Sub Clamp ( _
         ref value1 As Vector3, _
         ref min As Vector3, _
         ref max As Vector3, _
         out result As Vector3 _
)
public static void Clamp (
         ref Vector3 value1,
         ref Vector3 min,
         ref Vector3 max,
         out Vector3 result
)
public:
static void Clamp(
         ref Vector3 value1,
         ref Vector3 min,
         ref Vector3 max,
         out Vector3 result
)

Parameters

Requirements

Namespace: Microsoft.Xna.Framework

Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

See Also

Reference

Vector3 Structure
Vector3 Members
Microsoft.Xna.Framework Namespace

Platforms

Windows Phone