Improve comments on previous commit.
This commit is contained in:
parent
b91d4411b5
commit
0919f5bf9c
@ -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
|
||||||
@ -385,6 +384,7 @@ 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
|
||||||
|
Loading…
Reference in New Issue
Block a user