scaleBy method

Point<double> scaleBy(
  1. Point<num> other
)

Create a new Point where x and y values are scaled by the respective values in other.

Implementation

Point<double> scaleBy(Point<num> other) {
  return Point<double>(x * other.x, y * other.y);
}