scaleBy method

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

Implementation

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