ScaledUnit¶
-
class
simtk.unit.unit.
ScaledUnit
(factor, master, name, symbol)¶ ScaledUnit is like a BaseUnit, but it is based on another Unit.
ScaledUnit and BaseUnit are both used in the internals of Unit. They should only be used during the construction of Units.
-
__init__
(factor, master, name, symbol)¶
Methods
__init__
(factor, master, name, symbol)conversion_factor_to
(other)get_conversion_factor_to_base_units
()get_dimension_tuple
()Returns a sorted tuple of (BaseDimension, exponent) pairs, that can be used as a dictionary key. iter_base_dimensions
()Returns a sorted tuple of (BaseDimension, exponent) pairs, describing the dimension of this unit. iter_base_units
()-
iter_base_dimensions
()¶ Returns a sorted tuple of (BaseDimension, exponent) pairs, describing the dimension of this unit.
-
get_dimension_tuple
()¶ Returns a sorted tuple of (BaseDimension, exponent) pairs, that can be used as a dictionary key.
-
__lt__
(other)¶ Compare two ScaledUnits.
-
__str__
()¶ Returns a string with the name of this ScaledUnit
-
__repr__
()¶
-