| Parameter | Description |
|---|---|
| valueToClamp | Input value to be clamped. |
| lowerBound | Lower bound of the interval. |
| upperBound | Upper bound of the interval. |
int The clamping of the input valueToClamp into the interval (inclusive) [lowerBound, upperBound].
Returns the result of clamping the value valueToClamp into the interval (inclusive) [lowerBound, upperBound], where valueToClamp, lowerBound and upperBound are int values.
| Parameter | Description |
|---|---|
| valueToClamp | Input value to be clamped. |
| lowerBound | Lower bound of the interval. |
| upperBound | Upper bound of the interval. |
int2 The componentwise clamping of the input valueToClamp into the interval (inclusive) [lowerBound, upperBound].
Returns the result of a componentwise clamping of the int2 x into the interval [a, b], where a and b are int2 vectors.
| Parameter | Description |
|---|---|
| valueToClamp | Input value to be clamped. |
| lowerBound | Lower bound of the interval. |
| upperBound | Upper bound of the interval. |
int3 The componentwise clamping of the input valueToClamp into the interval (inclusive) [lowerBound, upperBound].
Returns the result of a componentwise clamping of the int3 x into the interval [a, b], where x, a and b are int3 vectors.
| Parameter | Description |
|---|---|
| valueToClamp | Input value to be clamped. |
| lowerBound | Lower bound of the interval. |
| upperBound | Upper bound of the interval. |
int4 The componentwise clamping of the input valueToClamp into the interval (inclusive) [lowerBound, upperBound].
Returns the result of a componentwise clamping of the value valueToClamp into the interval (inclusive) [lowerBound, upperBound], where valueToClamp, lowerBound and upperBound are int4 vectors.
| Parameter | Description |
|---|---|
| valueToClamp | Input value to be clamped. |
| lowerBound | Lower bound of the interval. |
| upperBound | Upper bound of the interval. |
uint The clamping of the input valueToClamp into the interval (inclusive) [lowerBound, upperBound].
Returns the result of clamping the value valueToClamp into the interval (inclusive) [lowerBound, upperBound], where valueToClamp, lowerBound and upperBound are uint values.
| Parameter | Description |
|---|---|
| valueToClamp | Input value to be clamped. |
| lowerBound | Lower bound of the interval. |
| upperBound | Upper bound of the interval. |
uint2 The componentwise clamping of the input valueToClamp into the interval (inclusive) [lowerBound, upperBound].
Returns the result of a componentwise clamping of the value valueToClamp into the interval (inclusive) [lowerBound, upperBound], where valueToClamp, lowerBound and upperBound are uint2 vectors.
| Parameter | Description |
|---|---|
| valueToClamp | Input value to be clamped. |
| lowerBound | Lower bound of the interval. |
| upperBound | Upper bound of the interval. |
uint3 The componentwise clamping of the input valueToClamp into the interval (inclusive) [lowerBound, upperBound].
Returns the result of a componentwise clamping of the value valueToClamp into the interval (inclusive) [lowerBound, upperBound], where valueToClamp, lowerBound and upperBound are uint3 vectors.
| Parameter | Description |
|---|---|
| valueToClamp | Input value to be clamped. |
| lowerBound | Lower bound of the interval. |
| upperBound | Upper bound of the interval. |
uint4 The componentwise clamping of the input valueToClamp into the interval (inclusive) [lowerBound, upperBound].
Returns the result of a componentwise clamping of the value valueToClamp into the interval (inclusive) [lowerBound, upperBound], where valueToClamp, lowerBound and upperBound are uint4 vectors.
| Parameter | Description |
|---|---|
| valueToClamp | Input value to be clamped. |
| lowerBound | Lower bound of the interval. |
| upperBound | Upper bound of the interval. |
long The clamping of the input valueToClamp into the interval (inclusive) [lowerBound, upperBound].
Returns the result of clamping the value valueToClamp into the interval (inclusive) [lowerBound, upperBound], where valueToClamp, lowerBound and upperBound are long values.
| Parameter | Description |
|---|---|
| valueToClamp | Input value to be clamped. |
| lowerBound | Lower bound of the interval. |
| upperBound | Upper bound of the interval. |
ulong The clamping of the input valueToClamp into the interval (inclusive) [lowerBound, upperBound].
Returns the result of clamping the value valueToClamp into the interval (inclusive) [lowerBound, upperBound], where valueToClamp, lowerBound and upperBound are ulong values.
| Parameter | Description |
|---|---|
| valueToClamp | Input value to be clamped. |
| lowerBound | Lower bound of the interval. |
| upperBound | Upper bound of the interval. |
float The clamping of the input valueToClamp into the interval (inclusive) [lowerBound, upperBound].
Returns the result of clamping the value valueToClamp into the interval (inclusive) [lowerBound, upperBound], where valueToClamp, lowerBound and upperBound are float values.
| Parameter | Description |
|---|---|
| valueToClamp | Input value to be clamped. |
| lowerBound | Lower bound of the interval. |
| upperBound | Upper bound of the interval. |
float2 The componentwise clamping of the input valueToClamp into the interval (inclusive) [lowerBound, upperBound].
Returns the result of a componentwise clamping of the value valueToClamp into the interval (inclusive) [lowerBound, upperBound], where valueToClamp, lowerBound and upperBound are float2 vectors.
| Parameter | Description |
|---|---|
| valueToClamp | Input value to be clamped. |
| lowerBound | Lower bound of the interval. |
| upperBound | Upper bound of the interval. |
float3 The componentwise clamping of the input valueToClamp into the interval (inclusive) [lowerBound, upperBound].
Returns the result of a componentwise clamping of the value valueToClamp into the interval (inclusive) [lowerBound, upperBound], where valueToClamp, lowerBound and upperBound are float3 vectors.
| Parameter | Description |
|---|---|
| valueToClamp | Input value to be clamped. |
| lowerBound | Lower bound of the interval. |
| upperBound | Upper bound of the interval. |
float4 The componentwise clamping of the input valueToClamp into the interval (inclusive) [lowerBound, upperBound].
Returns the result of a componentwise clamping of the value valueToClamp into the interval (inclusive) [lowerBound, upperBound], where valueToClamp, lowerBound and upperBound are float4 vectors.
| Parameter | Description |
|---|---|
| valueToClamp | Input value to be clamped. |
| lowerBound | Lower bound of the interval. |
| upperBound | Upper bound of the interval. |
double The clamping of the input valueToClamp into the interval (inclusive) [lowerBound, upperBound].
Returns the result of clamping the value valueToClamp into the interval (inclusive) [lowerBound, upperBound], where valueToClamp, lowerBound and upperBound are double values.
| Parameter | Description |
|---|---|
| valueToClamp | Input value to be clamped. |
| lowerBound | Lower bound of the interval. |
| upperBound | Upper bound of the interval. |
double2 The componentwise clamping of the input valueToClamp into the interval (inclusive) [lowerBound, upperBound].
Returns the result of a componentwise clamping of the value valueToClamp into the interval (inclusive) [lowerBound, upperBound], where valueToClamp, lowerBound and upperBound are double2 vectors.
| Parameter | Description |
|---|---|
| valueToClamp | Input value to be clamped. |
| lowerBound | Lower bound of the interval. |
| upperBound | Upper bound of the interval. |
double3 The componentwise clamping of the input valueToClamp into the interval (inclusive) [lowerBound, upperBound].
Returns the result of a componentwise clamping of the value valueToClamp into the interval (inclusive) [lowerBound, upperBound], where valueToClamp, lowerBound and upperBound are double3 vectors.
| Parameter | Description |
|---|---|
| valueToClamp | Input value to be clamped. |
| lowerBound | Lower bound of the interval. |
| upperBound | Upper bound of the interval. |
double4 The componentwise clamping of the input valueToClamp into the interval (inclusive) [lowerBound, upperBound].
Returns the result of a componentwise clamping of the value valueToClamp into the interval (inclusive) [lowerBound, upperBound], where valueToClamp, lowerBound and upperBound are double4 vectors.