diff options
| author | mzuenni <michi.zuendorf@gmail.com> | 2023-02-04 16:56:22 +0100 |
|---|---|---|
| committer | mzuenni <michi.zuendorf@gmail.com> | 2023-02-04 16:56:57 +0100 |
| commit | 63b53894683dc5a9d89ecc4ab45bb25faafd770a (patch) | |
| tree | 048481cee3e40e42457ef3de2347148f20a31c2c /geometry/formulars.cpp | |
| parent | 35871798d6864f3130399ba845f43bb724d49595 (diff) | |
fix
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 855ef1e..37cc4f4 100644 --- a/geometry/formulars.cpp +++ b/geometry/formulars.cpp @@ -21,9 +21,9 @@ double norm(pt a) {return dot(a, a);} double cross(pt a, pt b) {return imag(conj(a) * b);} double cross(pt p, pt a, pt b) {return cross(a - p, b - p);} -// -1 => gegen den Uhrzeigersinn -// 0 => kolliniear -// 1 => im Uhrzeigersinn. +// 1 => c links von a->b +// 0 => a, b und c kolliniear +// -1 => c rechts von a->b int orientation(pt a, pt b, pt c) { double orien = cross(b - a, c - a); return (orien > EPS) - (orien < -EPS); |
