Improve comments on previous commit.

This commit is contained in:
James.Hester 2019-11-12 08:00:04 +11:00
parent b91d4411b5
commit 0919f5bf9c

View File

@ -375,8 +375,7 @@ interpolate(T tau, const SGVec2<T>& v1, const SGVec2<T>& v2)
return r; return r;
} }
// Is the first point inside the triangle formed by the other three points? // Helper function for point_in_triangle
// Helper function
template <typename T> template <typename T>
inline inline
T T
@ -384,7 +383,8 @@ pt_determine(const SGVec2<T>& pt1, const SGVec2<T>& pt2, const SGVec2<T>& pt3)
{ {
return (pt1.x()-pt3.x()) * (pt2.y()-pt3.y()) - (pt2.x() - pt3.x()) * (pt1.y() - pt3.y()); 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 <typename T> template <typename T>
inline inline
bool bool