MulUnit
Represents a unit that is the product of two other units (e.g., Newton-meters for torque, kilowatt-hours for energy).
The MulUnit automatically normalizes to use base units for internal calculations. For example, if you create a MulUnit with Kilometers and Hours, it internally works with Meters and Seconds (the base units), ensuring that conversions work correctly.
Parameters
the first unit (e.g., Newtons, Meters)
the second unit (e.g., Meters, Seconds)
Type Parameters
the type of the first unit
the type of the second unit
Properties
Functions
Checks if this unit is equivalent to another one. Equivalence is determined by both units having the same base type and treat the same base unit magnitude as the same magnitude in their own units, to within Measure.EQUIVALENCE_THRESHOLD.
Converts a value in terms of base units to a value in terms of this unit.
Checks if this unit is the base unit for its own system of measurement.
Creates a new immutable measurement of the given magnitude in terms of this unit's base unit. Implementations are strongly recommended to sharpen the return type to a unit-specific measurement implementation.
Converts a value in terms of this unit to a value in terms of the base unit.