Home | Trees | Index | Help |
---|
|
|
|||
__init__(self,
value=0.0,
units=False)
Standard initialiser, takes up to two arguments. |
|||
__eq__(self, other) | |||
__ne__(self, other) | |||
__ge__(self, other) | |||
__gt__(self, other) | |||
__le__(self, other) | |||
__lt__(self, other) | |||
__add__(self, other) | |||
__radd__(self, other) | |||
__iadd__(self, other) | |||
__sub__(self, other) | |||
__rsub__(self, other) | |||
__isub__(self, other) | |||
__mul__(self, other) | |||
__rmul__(self, other) | |||
__imul__(self, other) | |||
__div__(self, other) | |||
__idiv__(self, other) | |||
__truediv__(self, other) | |||
__itruediv__(self, other) | |||
__neg__(self) | |||
__pos__(self) | |||
__abs__(self) | |||
__repr__(self) | |||
__str__(self) | |||
getAngle(self,
units='r')
Returns the value of the angle as a float in the specified units, 'r' - radians, 'd' - degrees or 'h' - hours. |
|||
setAngle(self,
value=0.0,
units='r')
Sets the angle. |
|||
getString(self,
units='d',
ndp=3)
Returns a string representation of the angle in sexagesimal or 'time' formats. |
|||
setString(self,
angleString,
units='d',
startPos=1)
Sets the angle from a string representation. |
|||
normPi(self)
Normalises the angle into the range +/-Pi. |
|||
norm2Pi(self)
Normalises the angle into the range 0-2Pi. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns a string representation of the angle in sexagesimal or 'time' formats. The optional first parameter units can be 'd', 'h' or 't' for degrees, hours (sexagesimal) or hours (time format), default is 'd'. The optional second parameter, 'ndp', specified the number of decimal places in the seconds field, default 3. For decimal string representations getAngle() can be used together with standard string formatting commands. |
Sets the angle from a string representation. The first argument contains a free format string representing the angle as either a decimal or sexagesimal number (or a combination of the two) and the second is a character specifying the units used ('d' for degrees, 'h' for hours). Uses slaDafin from the slalib module to parse the string. An optional third argument specifies where in the string to start parsing (in a 1 based, not zero based, count). Returns the position in the string at which encoding finished. |
|
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 3.0alpha2 on Sun Jun 11 16:26:28 2006 | http://epydoc.sf.net |