scaleBy method

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

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

Implementation

CustomPoint<T> scaleBy(CustomPoint<T> point) {
  return CustomPoint<T>((x * point.x) as T, (y * point.y) as T);
}