scaleBy method

CustomPoint<num> scaleBy(
  1. CustomPoint<num> point
)

Create new CustomPoint where x and y are scaled by point values

Implementation

CustomPoint scaleBy(CustomPoint point) {
  return CustomPoint(x * point.x, y * point.y);
}