Part of twisted.positioning.base View Source View In Hierarchy
Known subclasses: twisted.positioning.base.Climb, twisted.positioning.base.Speed
This primarily has behavior for converting between units and comparison.
Method | __init__ | Initializes a speed. |
Method | inMetersPerSecond | The speed that this object represents, expressed in meters per second. This attribute is immutable. |
Method | inKnots | Returns the speed represented by this object, expressed in knots. This attribute is immutable. |
Method | __float__ | Returns the speed represented by this object expressed in meters per second. |
Method | __repr__ | Returns a string representation of this speed object. |
Inherited from FancyEqMixin:
Method | __eq__ | Undocumented |
Method | __ne__ | Undocumented |
Parameters | speed | The speed that this object represents, expressed in meters per second. (type: float ) |
Raises | ValueError | Raised if value was invalid for this particular kind of speed. Only happens in subclasses. |
Returns | The speed this object represents, in meters per second. (type: float ) |
Returns | The speed this object represents, in knots. (type: float ) |
Returns | The speed represented by this object, expressed in meters per second. (type: float ) |
Returns | The string representation. (type: str ) |