operator / method

Point operator /(
  1. double scalar
)

Divides the point by a scalar.

Implementation

Point operator /(double scalar) {
  return Point(x / scalar, y / scalar);
}