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