|
|
__init__(self,
s_ang=0,
c=None,
n=0,
normal=True,
**unit_name)
New Ang. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| __floordiv__(self,
other) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| __ifloordiv__(self,
other) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| __ipow__(self,
other,
*mod) |
|
|
|
|
|
|
|
| __itruediv__(self,
other) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| __pow__(self,
other,
*mod) |
|
|
|
|
|
|
|
|
|
|
|
|
|
| __rfloordiv__(self,
other) |
|
|
|
|
|
|
|
|
|
|
|
|
|
| __round__(self,
*ndigits) |
|
|
|
|
| __rpow__(self,
other,
*mod) |
|
|
|
|
|
|
|
| __rtruediv__(self,
other) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
base(self,
*center)
Return this Angle's base, optionally centered. |
|
|
|
|
copy(self,
**unit_name)
Return a copy of this Ang. |
|
|
|
|
|
|
|
flipsign(self,
mul=-1,
**name)
Copy this Ang with sign flipped. |
|
|
|
|
is_integer(self,
*n)
Is this Ang's degrees integer?
(bool). |
|
|
|
|
isnear0(self,
eps0=staticmethod(pygeodesy.angles.Ang.EPS0))
Is this Ang near 0 within a tolerance? |
|
|
|
|
mod(self,
mul=1.0,
**unit_name)
Return the reduced latitude atan(mul *
tan(this)) as an Ang. |
|
|
|
|
nearest(self,
ind=0,
**name)
Return the closest cardinal direction (Ang). |
|
|
|
|
normalize(self,
*n)
Re-normalize this Ang, optionally replacing turns. |
|
|
|
|
|
|
|
reflect(self,
flips=False,
flipc=False,
swapsc=False)
Reflect this Ang in various ways. |
|
|
|
|
round(self,
*ndigits,
**name)
Return this Ang, optionally rounded to
ndigits (Ang). |
|
|
|
|
shift(self,
q=0,
**unit_name)
Shift this Ang by q quarter turns
(scalar). |
|
|
|
|
signOf(self,
*n)
Determine this Ang's sign, optionally replacing the
turns. |
|
|
|
|
toDegrees(self,
*n)
Return this Ang as Degrees, optionally
replacing the turns. |
|
|
|
|
toLambertian(self,
**name)
Return this Ang as Lambertian. |
|
|
|
|
toRadians(self,
*n)
Return this Ang as Radians, optionally
replacing the turns. |
|
|
|
|
toRepr(self,
*n,
**prec_fmt)
Return this Ang as
"<name>(<value>)" with/out turns
(str). |
|
|
|
|
toStr(self,
*n,
**prec_fmt)
Return this Ang as
"<value>" with/out turns
(str). |
|
|
|
|
toTuple(self,
**prec_fmt_sep)
Return string "(s, c, n)" or tuple ('s',
'c', 'n') if sep is None. |
|
|
|
|
toUnit(self,
*n)
Return this Ang as self.units, optionally
replacing the turns. |
|
|
|
Inherited from named._Named:
__format__,
attrs,
classof,
dup,
methodname,
rename,
renamed,
toStr2
Inherited from object:
__delattr__,
__getattribute__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__,
__sizeof__,
__subclasshook__
|
|
|
c
Get the cosine of this Angle (float).
|
|
|
degrees
Get this Ang in degrees.
|
|
|
degrees0
Get this Ang in degrees ignoring the turns.
|
|
|
lambertian
Get this Ang's Lambertian,
asinh(tan(radians)).
|
|
|
n
Return the number of turns (float) or 0.0.
|
|
|
n0
Return the number of turns, treating -180 as 180 -
1 turn (float).
|
|
|
ncardinal
Get the nearest cardinal direction (float_int).
|
|
|
quadrant
Class property with a .name attribute.
|
|
|
radians
Get this Ang in radians.
|
|
|
radians0
Get this Ang in radians ignoring the turns.
|
|
|
s
Get the sine of this Ang (float).
|
|
|
sc2
Get the 2-tuple (s, c).
|
|
|
scn3
Get the 3-tuple (s, c, n).
|
|
|
scnu4
Get the 4-tuple (s, c, n, unit).
|
|
|
t
Get the tangent of this Ang (float).
|
|
|
unit
Class property with a .name attribute.
|
|
Inherited from named._Named:
classname,
classnaming,
iteration,
name,
named,
named2,
named3,
named4,
sizeof,
typename
Inherited from object:
__class__
|