operator * method

  1. @override
CustomPoint<int> operator *(
  1. num factor
)
inherited

Create new CustomPoint where x and y are multiplied by factor

Implementation

@override
CustomPoint<T> operator *(num /*T|int*/ factor) {
  return CustomPoint<T>((x * factor), (y * factor));
}