operator * method

Distance operator *(
  1. Distance other
)

Implementation

Distance operator *(Distance other) {
  return Distance.withType(value * other.to(_type).value, _type);
}