Method Remainder
Remainder(int)
Composes a function that applies a remainder operation, point-wise, to this function's field result.
Declaration
public DiscreteFieldFunction Remainder(int divisor)
Parameters
| Type | Name | Description |
|---|---|---|
| int | divisor | The divisor. |
Returns
| Type | Description |
|---|---|
| DiscreteFieldFunction | A function that applies a remainder operation to this function's field result. |
Remarks
The function result has no data where this function's field result has no data.
The function result has no data when the divisor is zero.
The sign of this function's field result is preserved. For example, 7 remainder 3 (or -3) will result in 1 and -7 remainder 3 (or -3) will result in -1.
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 |
Remainder(DiscreteFieldFunction)
Composes a function that applies a remainder operation, point-wise, to this function's field result using values from another field as the divisors across their spatial intersection.
Declaration
public DiscreteFieldFunction Remainder(DiscreteFieldFunction otherField)
Parameters
| Type | Name | Description |
|---|---|---|
| DiscreteFieldFunction | otherField | The discrete field function to draw the divisors from. |
Returns
| Type | Description |
|---|---|
| DiscreteFieldFunction | A function that applies a remainder operation, point-wise, to this function's field result using values from another field as the divisors across their spatial intersection. |
Remarks
The function result has no data where either of the fields have no data.
The function result has no data where the divisor drawn from the other field is zero.
The sign of this function's field result is preserved. For example, 7 remainder 3 (or -3) will result in 1 and -7 remainder 3 (or -3) will result in -1.
The function result extent is the intersection of the extents of the given fields.
The spatial reference of both 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 |