subtract static method

Vector2 subtract(
  1. Vector2 a,
  2. Vector2 b
)

Implementation

static Vector2 subtract(Vector2 a, Vector2 b) {
  return Vector2(a.x - b.x, a.y - b.y);
}