DiscreteFieldOperators extension

Operators to perform arithmetic and comparisons between DiscreteFieldFunctions and int values or other DiscreteFieldFunctions.

In line with Dart conventions, DiscreteFieldOperators expect DiscreteFieldFunction as the left operand and the value as the right operand.

E.g. fieldFunction * 10.

on

Operators

operator *(Object other) DiscreteFieldFunction

Available on DiscreteFieldFunction, provided by the DiscreteFieldOperators extension

Composes a function that multiplies, point-wise, this function's result by other, using DiscreteFieldFunction.multiplyByValue or DiscreteFieldFunction.multiplyByOtherField.
operator +(Object other) DiscreteFieldFunction

Available on DiscreteFieldFunction, provided by the DiscreteFieldOperators extension

Composes a function that adds, point-wise, other to this function's result, using DiscreteFieldFunction.addValue or DiscreteFieldFunction.addOtherField.
operator -(Object other) DiscreteFieldFunction

Available on DiscreteFieldFunction, provided by the DiscreteFieldOperators extension

Composes a function that subtracts, point-wise, other from this function's result, using DiscreteFieldFunction.subtractValue or DiscreteFieldFunction.subtractOtherField.
operator /(Object other) DiscreteFieldFunction

Available on DiscreteFieldFunction, provided by the DiscreteFieldOperators extension

Composes a function that divides, point-wise, this function's result by other, using DiscreteFieldFunction.divideByValue or DiscreteFieldFunction.divideByOtherField.
operator <(Object other) BooleanFieldFunction

Available on DiscreteFieldFunction, provided by the DiscreteFieldOperators extension

Composes a function that compares, point-wise, this function's result to other, using DiscreteFieldFunction.isLessThanValue or DiscreteFieldFunction.isLessThanOtherField.
operator <=(Object other) BooleanFieldFunction

Available on DiscreteFieldFunction, provided by the DiscreteFieldOperators extension

Composes a function that compares, point-wise, this function's result to other, using DiscreteFieldFunction.isLessThanOrEqualToValue or DiscreteFieldFunction.isLessThanOrEqualToOtherField.
operator >(Object other) BooleanFieldFunction

Available on DiscreteFieldFunction, provided by the DiscreteFieldOperators extension

Composes a function that compares, point-wise, this function's result to other, using DiscreteFieldFunction.isGreaterThanValue or DiscreteFieldFunction.isGreaterThanOtherField.
operator >=(Object other) BooleanFieldFunction

Available on DiscreteFieldFunction, provided by the DiscreteFieldOperators extension

Composes a function that compares, point-wise, this function's result to other, using DiscreteFieldFunction.isGreaterThanOrEqualToValue or DiscreteFieldFunction.isGreaterThanOrEqualToOtherField.
operator unary-() DiscreteFieldFunction

Available on DiscreteFieldFunction, provided by the DiscreteFieldOperators extension

Composes a function that multiplies, point-wise, this function's result by -1.