operator / method
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);
}
Create new CustomPoint whose x and y values are divided by factor
CustomPoint<T> operator /(num /*T|int*/ factor) {
return CustomPoint<T>(x / factor, y / factor);
}