| 395 | //------------------------------------------------------------------------------ |
| 396 | |
| 397 | bool Pt3IsBetweenPt1AndPt2(const IntPoint pt1, |
| 398 | const IntPoint pt2, const IntPoint pt3) |
| 399 | { |
| 400 | if (PointsEqual(pt1, pt3) || PointsEqual(pt2, pt3)) return true; |
| 401 | else if (pt1.X != pt2.X) return (pt1.X < pt3.X) == (pt3.X < pt2.X); |
| 402 | else return (pt1.Y < pt3.Y) == (pt3.Y < pt2.Y); |
| 403 | } |
| 404 | //------------------------------------------------------------------------------ |
| 405 | |
| 406 | PolyPt* InsertPolyPtBetween(PolyPt* p1, PolyPt* p2, const IntPoint pt) |
no test coverage detected