operator / method

CustomPoint<T> operator /(
  1. num factor
)

Create new CustomPoint whose x and y values are divided by factor

Implementation

CustomPoint<T> operator /(num /*T|int*/ factor) {
  return CustomPoint<T>(x / factor, y / factor);
}