operator / method
Implementation
@override
Coordinate operator /(num factor) {
if (factor == 0) throw Exception("Cannot divide by zero!");
return Coordinate(x / factor, y / factor);
}
@override
Coordinate operator /(num factor) {
if (factor == 0) throw Exception("Cannot divide by zero!");
return Coordinate(x / factor, y / factor);
}