| 131 | //------------------------------------------------------------------------------ |
| 132 | |
| 133 | bool SlopesEqual(TEdge &e1, TEdge &e2) |
| 134 | { |
| 135 | if (e1.ybot == e1.ytop) return (e2.ybot == e2.ytop); |
| 136 | else if (e2.ybot == e2.ytop) return false; |
| 137 | else return (e1.ytop - e1.ybot)*(e2.xtop - e2.xbot) - |
| 138 | (e1.xtop - e1.xbot)*(e2.ytop - e2.ybot) == 0; |
| 139 | } |
| 140 | //------------------------------------------------------------------------------ |
| 141 | |
| 142 | bool SlopesEqual(const IntPoint pt1, const IntPoint pt2, const IntPoint pt3) |
no outgoing calls
no test coverage detected