Unit Set

Base Class: None

Derived Classes: None

Description

Represents a set of units, with reference to the default SI units "N m kg C s". This is represented as a conversion factor for each of the five physical quantities: force, length, mass, time and temperature. The factor is a multiplier to convert from one default SI unit to the required units. For example, if the required units are kiloNewtons, there are 0.001 kiloNewtons to one Newton and so the conversion factor is 0.001. Similarly, if the required units are feet, there are 3.281 feet to one metre, and so the conversion factor is 3.281 Unit sets are created using the function createUnitSet

Available Functions:
 convertFromSI(value, energyDim, forceDim, lengthDim, massDim, timeDim, temperatureDim, [perLengthDim])
 convertToSI(value, energyDim, forceDim, lengthDim, massDim, timeDim, temperatureDim, [perLengthDim])
 convertToUnitSet(convertToSet, value, energyDim, forceDim, lengthDim, massDim, timeDim, temperatureDim, [perLengthDim])
 convertToUnitSetPackedDim(convertToSet, value, long packedDim)
 describeAsString(long dim, [lengthUnitSet])
 getEnergyFactor()
 getEnergyLongName()
 getEnergyShortName()
 getForceFactor()
 getForceLongName()
 getForceShortName()
 getLengthFactor()
 getLengthLongName()
 getLengthShortName()
 getMassFactor()
 getMassLongName()
 getMassShortName()
 getName()
 getTemperatureFactor()
 getTemperatureLongName()
 getTemperatureOffset()
 getTemperatureShortName()
 getTimeFactor()
 getTimeLongName()
 getTimeShortName()
 isLengthImperial()
 isUnset()
 splitFeetInches(val, feet, inches)

Back to Overview