Method Clamp
Clamp(int, int)
Composes a function that clamps, point-wise, this function's field result between two values.
Declaration
public DiscreteFieldFunction Clamp(int min, int max)
Parameters
| Type | Name | Description |
|---|---|---|
| int | min | The lower-bound value to clamp to. |
| int | max | The upper-bound value to clamp to. |
Returns
| Type | Description |
|---|---|
| DiscreteFieldFunction | A function that clamps, point-wise, this function's field result between two values. |
Remarks
The function result is min where this function's field result is less than min. The function result is max where this function's field result is greater than max. Otherwise, this function's field result is preserved.
The function result has no data where this function's field result has no data.
The function result has no data where max is less than min.
The function result extent equals that of this function's field result.
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET | 300.1 |
| .NET Windows | 300.1 |
| .NET Android | 300.1 |
| .NET iOS | 300.1 |
Clamp(DiscreteFieldFunction, DiscreteFieldFunction)
Composes a function that clamps, point-wise, this function's field result between two values drawn from two others.
Declaration
public DiscreteFieldFunction Clamp(DiscreteFieldFunction minField, DiscreteFieldFunction maxField)
Parameters
| Type | Name | Description |
|---|---|---|
| DiscreteFieldFunction | minField | The discrete field function to draw lower-bound values from. |
| DiscreteFieldFunction | maxField | The discrete field function to draw upper-bound values from. |
Returns
| Type | Description |
|---|---|
| DiscreteFieldFunction | A function that clamps, point-wise, this function's field result between two values drawn from two others. |
Remarks
The function result is min where this function's field result is less than min. The function result is max where this function's field result is greater than max. Otherwise, this function's field result is preserved.
The function result has no data where any of the fields have no data.
The function result has no data where the max is less than the min.
The function result extent equals the intersection of this field with the intersection of the min field and max field.
The spatial reference of all fields must be equivalent.
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET | 300.1 |
| .NET Windows | 300.1 |
| .NET Android | 300.1 |
| .NET iOS | 300.1 |