cross method

double cross(
  1. Vec2 other
)

Implementation

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