Quantity.opBinary

Multiplication with a unit instance.

Returns a quantity with the same value, but the new unit.

Examples

auto l = 6 * metre;
assert(l * metre == 6 * pow!2(metre));

Meta