operator + method

AlignmentDirectional operator +(
  1. AlignmentDirectional other
)

Returns the sum of two AlignmentDirectionals.

Implementation

AlignmentDirectional operator +(AlignmentDirectional other) {
  return AlignmentDirectional(start + other.start, y + other.y);
}