public interface UnitEnum<T>
| Modifier and Type | Method and Description |
|---|---|
float |
from(T other)
Get the multiplicative conversion factor to convert a value from the specified
units to this unit.
|
float |
getOffset(T other)
Get the additive offset to convert a value from the specified unit to this unit.
|
float from(T other)
other - another T representing the existing units of a valuefloat getOffset(T other)
other - another T representing the existing units of a value