From c7ca9c04f8d841c48d48f0fcc65dec2461286a30 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Sat, 10 Aug 2019 11:36:36 +0900 Subject: [PATCH] AP_Math: add comment to vector2f::point_on_segment --- libraries/AP_Math/vector2.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/AP_Math/vector2.h b/libraries/AP_Math/vector2.h index 9ad34162ad..64dba5f411 100644 --- a/libraries/AP_Math/vector2.h +++ b/libraries/AP_Math/vector2.h @@ -216,6 +216,7 @@ struct Vector2 // returns true if they intersect and intersection argument is updated with intersection closest to seg_start static bool circle_segment_intersection(const Vector2& seg_start, const Vector2& seg_end, const Vector2& circle_center, float radius, Vector2& intersection) WARN_IF_UNUSED; + // check if a point falls on the line segment from seg_start to seg_end static bool point_on_segment(const Vector2& point, const Vector2& seg_start, const Vector2& seg_end) WARN_IF_UNUSED {