IMHO you should consider 5 cases: P1 = P2 and the four quadrants https://en.m.wikipedia.org/wiki/Quadrant_(plane_geometry)
- Quadrant I should correspond to > - Quadrant III should correspond to < - What about quadrants II and IV? You could compare your point to Y = -X line to reduce your study to 3 cases. Best regards Sandro Cumerlato On Jul 26, 2017 6:27 PM, "Alexey via Lazarus" <[email protected]> wrote: On 26.07.2017 18:11, Graeme Geldenhuys via Lazarus wrote: > ComparePoints() returning a Integer is not a very friendly return type > either, > Hm, in my app Int makes sense: i need to compare Points in binary search, and see: >, <, =. -- Regards, Alexey -- _______________________________________________ Lazarus mailing list [email protected] https://lists.lazarus-ide.org/listinfo/lazarus
-- _______________________________________________ Lazarus mailing list [email protected] https://lists.lazarus-ide.org/listinfo/lazarus
