cross method

num cross(
  1. Coord point
)

Performs the cross product of two vectors represented using Coord

Implementation

num cross(Coord point) => ($1 * point.$2) - ($2 * point.$1);