twisted.positioning.base.Angle(FancyEqMixin, object) class documentationtwisted.positioning.base
(View In Hierarchy)
Known subclasses: twisted.positioning.base.Coordinate, twisted.positioning.base.Heading
An object representing an angle.
| Method | __init__ | Initializes an angle. | 
| Method | inDecimalDegrees | The value of this angle in decimal degrees. This value is immutable. | 
| Method | inDegreesMinutesSeconds | The value of this angle as a degrees, minutes, seconds tuple. This value is immutable. | 
| Method | setSign | Sets the sign of this angle. | 
| Method | __float__ | Returns this angle as a float. | 
| Method | __repr__ | Returns a string representation of this angle. | 
| Class Variable | _RANGE_EXPRESSIONS | A collection of expressions for the allowable range for the angular value 
of a particular coordinate value. (type: dictofAnglesconstants to callables) | 
| Class Variable | _ANGLE_TYPE_NAMES | English names for angle types. (type: dictofAnglesconstants tostr) | 
| Method | _angleValueRepr | Returns a string representation of the angular value of this angle. | 
| Method | _angleTypeNameRepr | Returns a string representation of the type of this angle. | 
Inherited from FancyEqMixin:
| Method | __eq__ | Undocumented | 
| Method | __ne__ | Undocumented | 
dict of Angles 
constants to callables)
  Initializes an angle.
| Parameters | angle | The value of the angle in decimal degrees. ( Noneif unknown). (type:floatorNone) | 
| angleType | A symbolic constant describing the angle type. Should be one of Anglesor 
{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. | 
Sets the sign of this angle.
| Parameters | sign | The new sign. 1for positive and-1for negative 
signs, respectively. (type:int) | 
| Raises | ValueError | If the signparameter is not-1or1. | 
Returns this angle as a float.
| Returns | The float value of this angle, expressed in degrees. (type: float) | |
Returns a string representation of this angle.
| Returns | The string representation. (type: str) | |