BaseDimension

class simtk.unit.basedimension.BaseDimension(name)

A physical dimension such as length, mass, or temperature.

It is unlikely the user will need to create new ones.

__init__(name)

Create a new BaseDimension.

Each new BaseDimension is assumed to be independent of all other BaseDimensions. Use the existing BaseDimensions in simtk.dimension instead of creating new ones.

Methods

__init__(name) Create a new BaseDimension.
__lt__(other)

The implicit order of BaseDimensions is the order in which they were created. This method is used for using BaseDimensions as hash keys, and also affects the order in which units appear in multi-dimensional Quantities.

Returns True if self < other, False otherwise.

__hash__()

Needed for using BaseDimensions as hash keys.