operator + method

BlockAlignment operator +(
  1. BlockAlignment other
)

Returns the sum of two BlockAlignments.

Implementation

BlockAlignment operator +(BlockAlignment other) {
  return BlockAlignment(x + other.x, y + other.y);
}