compose

Composes this controller with another controller, returning a new controller that is the composition of the two by summing the outputs of each controller together.

A DoubleBinaryOperator can be appended to this method's overload to specify specific combinatory behaviour.

This method is sugar for compose(other, Double::sum).

Return

a new controller that is the additive composition of the two

Parameters

plus

the other controller B to compose with for a composition in output this + B


Composes this controller with another controller, returning a new controller that is the composition of the two.

The specified DoubleBinaryOperator that returns a double is expected to be a function that indicates how the two controllers should be combined (e.g. addition, multiplication, modifying the output of a particular controller, etc.).

Return

a new controller that is the composition of the two

Parameters

other

the other controller to compose with

combiner

the function that combines the two controllers