operator * method

Length operator *(
  1. double scalar
)

Multiplies this length by a scalar value. Returns a new Length instance with the scaled value in the original unit.

Implementation

Length operator *(double scalar) {
  return Length(value * scalar, unit);
}