mirror of https://github.com/KLayout/klayout.git
Rationale: pya.CplxTrans.angle is computed by doing atan2(m_sin, m_cos), but the algorithm used both in C and python for sin, cos and atan2 are not as precise as IEEE's float. In python, for example, this happens: ``` python >>> from math import pi, cos, sin, atan2 >>> atan2(sin(45*pi/180), cos(45*pi/180)) * 180 / pi == 45 False >>> atan2(sin(45*pi/180), cos(45*pi/180)) * 180 / pi, 45 (44.99999999999999, 45) ``` |
||
|---|---|---|
| .. | ||
| basic.py | ||
| dbLayoutTest.py | ||
| dbPCells.py | ||
| dbPolygonTest.py | ||
| dbReaders.py | ||
| dbRegionTest.py | ||
| dbTransTest.py | ||
| qtbinding.py | ||
| tlTest.py | ||