operator + method

PVector operator +(
  1. PVector other
)

Implementation

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