scaleBy method
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);
}
Create new CustomPoint where x and y values are scaled by point
values
CustomPoint<T> scaleBy(CustomPoint<T> point) {
return CustomPoint<T>((x * point.x) as T, (y * point.y) as T);
}