Convert from a packed dimensionality back into its individual parts
packed | integer | the packed value |
energyDim | integer | exponent of energy |
forceDim | integer | exponent of force |
lengthDim | integer | exponent of length |
massDim | integer | exponent of mass |
timeDim | integer | exponent of time |
temperatureDim | integer | exponent of temperature |
perLengthDim | optional integer | 0 (the default) for most quantities. 1 for quantities that are 'per unit length' AND also have a non-zero exponent of length, such as "N.m/m". Similarly 2 and 3 for quantities that are per unit area or volume. It is possible to use a different UnitSet object to represent this 'extra' length/area/volume |
Return value | none |
See also packDimensionality
Back to Modeller
Back to Overview