twisted.positioning.baseView Source (View In Hierarchy)
The heading of a mobile object.
|Instance Variable||variation||The (optional) magnetic variation. The sign of the variation is positive
for variations towards the east (clockwise from north), and negative for
variations towards the west (counterclockwise from north). If the variation
is unknown or not applicable, this is
|Instance Variable||correctedHeading 0||The heading, corrected for variation. If the variation is unknown (
|Method||__init__||Initializes an angle with an optional variation.|
|Class Method||fromFloats||Constructs a Heading from the float values of the angle and variation.|
|Method||correctedHeading||Corrects the heading by the given variation. This is sometimes known as the true heading.|
|Method||setSign||Sets the sign of the variation of this heading.|
|Method||__repr__||Returns a string representation of this angle.|
None), is None. This attribute is read-only (its value is determined by the angle and variation attributes). The value is coerced to being between 0 (inclusive) and 360 (exclusive).
Initializes an angle with an optional variation.
Constructs a Heading from the float values of the angle and variation.
|Parameters||angleValue||The angle value of this heading. (type: |
|variationValue||The value of the variation of this heading. (type: |
Sets the sign of the variation of this heading.
|Parameters||sign||The new sign. |
|Raises||ValueError||If the |