diff options
Diffstat (limited to 'geometry/formulars.cpp')
| -rw-r--r-- | geometry/formulars.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/geometry/formulars.cpp b/geometry/formulars.cpp index 37cc4f4..e34b3c6 100644 --- a/geometry/formulars.cpp +++ b/geometry/formulars.cpp @@ -9,7 +9,7 @@ constexpr double PIL = PIU-2e-19l; double angle(pt a) {return arg(a);} // rotiert Punkt im Uhrzeigersinn um den Ursprung. -pt rotate(pt a, double theta) {return a * exp(pt(0.0, theta));} +pt rotate(pt a, double theta) {return a * polar(1.0, theta);} // Skalarprodukt. double dot(pt a, pt b) {return real(conj(a) * b);} |
