diff options
| author | Paul Jungeblut <paul.jungeblut@gmail.com> | 2016-10-16 23:22:57 +0200 |
|---|---|---|
| committer | Paul Jungeblut <paul.jungeblut@gmail.com> | 2016-10-16 23:22:57 +0200 |
| commit | 98bd54ef4b1be998eaca8bd3f75af439f895e050 (patch) | |
| tree | 6aca7b9eccbb239e12cf3ec4855cf0a8b99b7446 /geometry/formulars.cpp | |
| parent | 4dc3640c083c241ab55033914810f9b61635ffae (diff) | |
Removing wrong formular.
Diffstat (limited to 'geometry/formulars.cpp')
| -rw-r--r-- | geometry/formulars.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/geometry/formulars.cpp b/geometry/formulars.cpp index e77a0b9..c1010ff 100644 --- a/geometry/formulars.cpp +++ b/geometry/formulars.cpp @@ -2,11 +2,11 @@ // complex<int> verwenden. Funktionen wie abs() geben dann int zurück. typedef pt complex<double>; -// Winkel zwischen Punkt und x-Achse in [0, 2 * PI), bzw. zwischen a, b. -double angle = arg (a), angle_a_b = arg (a - b); +// Winkel zwischen Punkt und x-Achse in [0, 2 * PI). +double angle = arg(a); // Punkt rotiert um Winkel theta. -pt a_rotated = a * exp (pt (0, theta)); +pt a_rotated = a * exp(pt(0, theta)); // Mittelpunkt des Dreiecks abc. pt centroid = (a + b + c) / 3.0; |
