summaryrefslogtreecommitdiff
path: root/digital/avr/modules/math/geometry/intersection.h
diff options
context:
space:
mode:
authorNicolas Schodet2012-05-05 19:02:53 +0200
committerNicolas Schodet2012-05-05 19:02:53 +0200
commit0fcdbb1904c2f1c32c80ebe4da367742ef6e00bc (patch)
treec759272b7853cbc0ae4b0941d49ccc7e9291169f /digital/avr/modules/math/geometry/intersection.h
parente50baf1bcea86bd969b7d87e9dd643607ef7f161 (diff)
digital/avr/modules/math/geometry: slightly change intersection meaning
When a segment end is exactly on the other segment, consider there is no intersection.
Diffstat (limited to 'digital/avr/modules/math/geometry/intersection.h')
-rw-r--r--digital/avr/modules/math/geometry/intersection.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/digital/avr/modules/math/geometry/intersection.h b/digital/avr/modules/math/geometry/intersection.h
index faff928c..c1998fb2 100644
--- a/digital/avr/modules/math/geometry/intersection.h
+++ b/digital/avr/modules/math/geometry/intersection.h
@@ -31,7 +31,8 @@
* - a, b: first line segment vertices.
* - c, d: second line segment vertices.
*
- * If AB and CD are parallel, consider there is no intersection. */
+ * If AB and CD are parallel or if a vertice is exactly on the other segment,
+ * consider there is no intersection. */
uint8_t
intersection_segment_segment (const vect_t *a, const vect_t *b,
const vect_t *c, const vect_t *d);