Part of twisted.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 |

inMeters 0 =

The altitude represented by this object, in meters. This attribute is
read-only. (type:

`float`

)
def
__init__(self, altitude):
(source)

Initializes an altitude.

Parameters | altitude | The altitude in meters. (type: `float` ) |

@property

def inFeet(self): (source)

def inFeet(self): (source)

Gets the altitude this object represents, in feet.

Returns | The altitude, expressed in feet. (type: `float` ) |

@property

def inMeters(self): (source)

def inMeters(self): (source)

Returns the altitude this object represents, in meters.

Returns | The altitude, expressed in feet. (type: `float` ) |

def
__float__(self):
(source)

Returns the altitude represented by this object expressed in meters.

Returns | The altitude represented by this object, expressed in meters. (type: `float` ) |

def
__repr__(self):
(source)

Returns a string representation of this altitude.

Returns | The string representation. (type: `str` ) |