| 539 | //---------------------------------------------------------------------- |
| 540 | |
| 541 | bool SlopesEqual(const TEdge &e1, const TEdge &e2, bool UseFullInt64Range) |
| 542 | { |
| 543 | #ifndef use_int32 |
| 544 | if (UseFullInt64Range) |
| 545 | return Int128Mul(e1.Top.Y - e1.Bot.Y, e2.Top.X - e2.Bot.X) == |
| 546 | Int128Mul(e1.Top.X - e1.Bot.X, e2.Top.Y - e2.Bot.Y); |
| 547 | else |
| 548 | #endif |
| 549 | return (e1.Top.Y - e1.Bot.Y) * (e2.Top.X - e2.Bot.X) == |
| 550 | (e1.Top.X - e1.Bot.X) * (e2.Top.Y - e2.Bot.Y); |
| 551 | } |
| 552 | //------------------------------------------------------------------------------ |
| 553 | |
| 554 | bool SlopesEqual(const IntPoint pt1, const IntPoint pt2, |
no test coverage detected