cross method

num cross(
  1. Vector2 v
)

Implementation

num cross(Vector2 v) {
  return x * v.y - y * v.x;
}