Provides a fairly basictwo dimensional coordinate sytem.
Exception class for representing Coordinates.
Exception raised when converting units.
Base units for dimensions
Map of {unit name : conversion factor to base units, ...}
Returns the unsorted list of acceptable units.
Convert a value from one set of units to another.
Represents a dimension as an engineering value i.e. a number and units.
Returns a new Dim() multiplied by a factor, units are unchanged.
Returns a new Dim() divided by a factor, units are unchanged.
Returns a new Dim() with units changed and value converted.
Overload self+other, returned result has the sum of self and other. The units chosen are self’s unless self’s units are None in which case other’s units are used (if not None).
Overload self-other, returned result has the difference of self and other. The units chosen are self’s unless self’s units are None in which case other’s units are used (if not None).
Addition in place, value of other is converted to my units and added.
Subtraction in place, value of other is subtracted.
Returns true if self value < other value after unit conversion.
Returns true if self value <= other value after unit conversion.
Returns true if self value == other value after unit conversion.
Returns true if self value != other value after unit conversion.
Returns true if self value > other value after unit conversion.
Returns true if self value >= other value after unit conversion.
Returns a Dim object with the value in inches.
A named tuple that describes a box with width and depth as Dim() objects.
Stringifying.
Padding around another object that forms the Bounding Box. All 4 attributes are Dim() objects
Stringifying.
Margin padding around another object. All 4 attributes are Coord.Dim() objects.
Stringifying.
A point, an absolute x/y position on the plot area. Members are Coord.Dim().
Comparison.
Stringifying.
Returns a new Pt() with units changed and value converted.
Returns a new Pt() scaled by a factor, units are unchanged.
Returns a Coord.Dim() of length and units BASE_UNITS.
Returns a Coord.Dim() of zero length and units BASE_UNITS.
Returns a Coord.Box() of zero dimensions and units BASE_UNITS.
Returns a Coord.Pad() of zero dimensions and units BASE_UNITS.
Returns a Coord.Dim() of zero length and units BASE_UNITS.
Returns a new Pt object by incrementing existing point incX, incY that are both Dim() objects or None.
Returns a new point with the dimensions of theP converted to theUnits.