## SIVector3.Clamp

### Description

Clamps the vector v components to the range [MinValue, MaxValue] and places the values into this vector.

### C# Syntax

    SIVector3.Clamp( Double in_dMin, Double in_dMax, SIVector3 in_pVector );

### Scripting Syntax

    SIVector3.Clamp( MinValue, MaxValue, v );

### Parameters

Parameter | Type | Description
--- | --- | ---
MinValue | Floating Point value | Lower bound of the clamping domain
MaxValue | Floating Point value | Higher bound of the clamping domain
v | SIVector3 | Operand vector

### Examples

#### VBScript Example

    dim v1
    ' Create 3D vectors.
    set v1 = XSIMath.CreateVector3
    set v2 = XSIMath.CreateVector3
    v1.Set -1010.0, 1020.0, 1030.0
    v2.Clamp -1000.0, 1000.0, v1

### See Also

SIVector3.ClampInPlace SIVector3 SIMatrix3 SIMatrix4 SIRotation SITransformation SIQuaternion