operator / method

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

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

Implementation

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