twisted.positioning.base.Altitude(FancyEqMixin, object) class documentationtwisted.positioning.base
View Source
(View In Hierarchy)
An altitude.
| Instance Variable | inMeters 0 | The altitude represented by this object, in meters. This attribute is
read-only. (type: float) |
| Instance Variable | inFeet 0 | As above, but expressed in feet. (type: float) |
| Method | __init__ | Initializes an altitude. |
| Method | inFeet | Gets the altitude this object represents, in feet. |
| Method | inMeters | Returns the altitude this object represents, in meters. |
| Method | __float__ | Returns the altitude represented by this object expressed in meters. |
| Method | __repr__ | Returns a string representation of this altitude. |
Inherited from FancyEqMixin:
| Method | __eq__ | Undocumented |
| Method | __ne__ | Undocumented |
float)
Initializes an altitude.
| Parameters | altitude | The altitude in meters. (type: float) |
Gets the altitude this object represents, in feet.
| Returns | The altitude, expressed in feet. (type: float) | |
Returns the altitude this object represents, in meters.
| Returns | The altitude, expressed in feet. (type: float) | |
Returns the altitude represented by this object expressed in meters.
| Returns | The altitude represented by this object, expressed in meters. (type: float) | |
Returns a string representation of this altitude.
| Returns | The string representation. (type: str) | |