Method ToDiscreteFieldFunction
ToDiscreteFieldFunction()
Composes a function that casts, point-wise, float values from this function's field result to integer values across its extent.
Declaration
public DiscreteFieldFunction ToDiscreteFieldFunction()
Returns
| Type | Description |
|---|---|
| DiscreteFieldFunction | A function that casts float values from this function's field result to integer values. |
Remarks
Values that are within the representable range of a 32-bit signed integer are rounded to the nearest integer by discarding the fractional part then cast. Values that are not within the representable range of a 32-bit signed integer are clamped to be within the representable range then rounded to the nearest integer by discarding the fractional part then cast. The function result has no data where this function's field result has no data.
The function result extent equals that of this function's field result.
Use Floor(), Round(), and Ceil() to control rounding before casting.
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET | 300 |
| .NET Windows | 300 |
| .NET Android | 300 |
| .NET iOS | 300 |