Function applyMerge

Applies an joint operation field-wise on two rectangles, returning a single rectangle. This is used to support operations like summing two rectangles.

// Eg make a new rectangle by summing each field of rectangle A & B.
apply((valueA,valueB) => valueA+valueB, rectA, rectB);