add method

void add(
  1. IntersectionMatrix im
)

Adds one matrix to another. Addition is defined by taking the maximum dimension value of each position in the summand matrices.

@param im the matrix to add

Implementation

void add(IntersectionMatrix im) {
  for (int i = 0; i < 3; i++) {
    for (int j = 0; j < 3; j++) {
      setAtLeast(i, j, im.get(i, j));
    }
  }
}