diff options
author | pacien | 2017-12-22 13:50:34 +0100 |
---|---|---|
committer | pacien | 2017-12-22 13:50:34 +0100 |
commit | 6802eedbdde0e5a42bb7b6fc251b3123c295666f (patch) | |
tree | ad812a32f0bd843ef1028aa69716c4eebd58e440 | |
parent | 553dc4a5b272a1828940e72a07b1c9a7210be464 (diff) | |
download | morpher-6802eedbdde0e5a42bb7b6fc251b3123c295666f.tar.gz |
Rename function accurately
Signed-off-by: pacien <pacien.trangirard@pacien.net>
-rw-r--r-- | src/morpher/quadrilateral.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/morpher/quadrilateral.c b/src/morpher/quadrilateral.c index b9e740b..9671116 100644 --- a/src/morpher/quadrilateral.c +++ b/src/morpher/quadrilateral.c | |||
@@ -6,7 +6,7 @@ static inline IntVector p2(IntVector n) { | |||
6 | return n * n; | 6 | return n * n; |
7 | } | 7 | } |
8 | 8 | ||
9 | static inline bool in_circumcircle(TriangleMap *t, CartesianVector v) { | 9 | static inline bool not_in_circumcircle(TriangleMap *t, CartesianVector v) { |
10 | CartesianVector a = t->vertices[0].origin, b = t->vertices[1].origin, c = t->vertices[2].origin; | 10 | CartesianVector a = t->vertices[0].origin, b = t->vertices[1].origin, c = t->vertices[2].origin; |
11 | IntVector v2 = p2(v.x) + p2(v.y); | 11 | IntVector v2 = p2(v.x) + p2(v.y); |
12 | return matrix_int_det3(a.x - v.x, a.y - v.y, p2(a.x) + p2(a.y) - v2, | 12 | return matrix_int_det3(a.x - v.x, a.y - v.y, p2(a.x) + p2(a.y) - v2, |
@@ -53,6 +53,6 @@ void quadrilateral_flip_diagonal(TriangleMap *t1, TriangleMap *t2) { | |||
53 | } | 53 | } |
54 | 54 | ||
55 | bool quadrilateral_is_delaunay(TriangleMap *t1, TriangleMap *t2) { | 55 | bool quadrilateral_is_delaunay(TriangleMap *t1, TriangleMap *t2) { |
56 | return in_circumcircle(t1, t2->vertices[(trianglemap_find_common_edge(t2, t1) + 2) % 3].origin) && | 56 | return not_in_circumcircle(t1, t2->vertices[(trianglemap_find_common_edge(t2, t1) + 2) % 3].origin) && |
57 | in_circumcircle(t2, t1->vertices[(trianglemap_find_common_edge(t1, t2) + 2) % 3].origin); | 57 | not_in_circumcircle(t2, t1->vertices[(trianglemap_find_common_edge(t1, t2) + 2) % 3].origin); |
58 | } | 58 | } |