operator - method

Vec2D operator -(
  1. Vec2D v
)

Implementation

Vec2D operator -(Vec2D v) {
  return Vec2D.fromValues(x - v.x, y - v.y);
}