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