cross method

double cross(
  1. Point other
)

Returns the cross product (z-component) with another point.

Implementation

double cross(Point other) {
  return x * other.y - y * other.x;
}