class documentation
class Angle(FancyEqMixin): (source)
Known subclasses: twisted.positioning.base.Coordinate
, twisted.positioning.base.Heading
Constructor: Angle(angle, angleType)
An object representing an angle.
Method | __float__ |
Returns this angle as a float. |
Method | __init__ |
Initializes an angle. |
Method | __repr__ |
Returns a string representation of this angle. |
Method | set |
Sets the sign of this angle. |
Class Variable | compare |
Undocumented |
Instance Variable | angle |
Undocumented |
Property | in |
The value of this angle in decimal degrees. This value is immutable. |
Property | in |
The value of this angle as a degrees, minutes, seconds tuple. This value is immutable. |
Constant | _ANGLE |
English names for angle types. |
Constant | _RANGE |
A collection of expressions for the allowable range for the angular value of a particular coordinate value. |
Instance Variable | _angle |
Undocumented |
Property | _angle |
Returns a string representation of the type of this angle. |
Property | _angle |
Returns a string representation of the angular value of this angle. |
Inherited from FancyEqMixin
:
Method | __eq__ |
Undocumented |
Method | __ne__ |
Undocumented |
Initializes an angle.
Parameters | |
angle:float or None | The value of the angle in decimal degrees. (None if unknown). |
angle | A symbolic constant describing the angle type. Should be one of Angles or {None} if unknown. |
Raises | |
ValueError | If the angle type is not the default argument, but it is an unknown type (not in Angle._RANGE_EXPRESSIONS), or it is a known type but the supplied value was out of the allowable range for said type. |
overridden in
twisted.positioning.base.Heading
Returns a string representation of this angle.
Returns | |
str | The string representation. |
overridden in
twisted.positioning.base.Heading
Sets the sign of this angle.
Parameters | |
sign:int | The new sign. 1 for positive and -1 for negative signs, respectively. |
Raises | |
ValueError | If the sign parameter is not -1 or 1. |
English names for angle types.
Value |
|
A collection of expressions for the allowable range for the angular value of a particular coordinate value.
Value |
|