clampOtherFields method
- required ContinuousFieldFunction minField,
- required ContinuousFieldFunction maxField,
Composes a function that clamps, point-wise, this function's field result between two values drawn from two others.
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.
Parameters:
minField— The continuous field function to draw lower-bound values from.maxField— The continuous field function to draw upper-bound values from.
Return Value: A function that clamps, point-wise, this function's field result between two values drawn from two others.