From 0919f5bf9c61593bd75a63e1d0de95406887088b Mon Sep 17 00:00:00 2001 From: "James.Hester" Date: Tue, 12 Nov 2019 08:00:04 +1100 Subject: [PATCH] Improve comments on previous commit. --- simgear/math/SGVec2.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/simgear/math/SGVec2.hxx b/simgear/math/SGVec2.hxx index 0979c0a0..c0c6cb62 100644 --- a/simgear/math/SGVec2.hxx +++ b/simgear/math/SGVec2.hxx @@ -375,8 +375,7 @@ interpolate(T tau, const SGVec2& v1, const SGVec2& v2) return r; } -// Is the first point inside the triangle formed by the other three points? -// Helper function +// Helper function for point_in_triangle template inline T @@ -384,7 +383,8 @@ pt_determine(const SGVec2& pt1, const SGVec2& pt2, const SGVec2& pt3) { return (pt1.x()-pt3.x()) * (pt2.y()-pt3.y()) - (pt2.x() - pt3.x()) * (pt1.y() - pt3.y()); } - + +// Is testpt inside the triangle formed by the other three points? template inline bool