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) ``` |
||
|---|---|---|
| .. | ||
| algo | ||
| bd | ||
| bool | ||
| cif | ||
| drc | ||
| dxf | ||
| gds | ||
| gds2_txt | ||
| klayout_main | ||
| net_tracer | ||
| oasis | ||
| other | ||
| python | ||
| ruby | ||
| vendor/ruby/test | ||