cross method

double cross(
  1. Vector2 other
)

Implementation

double cross(Vector2 other) => x * other.y - y * other.x;