Check whether we pass a new Vertex on the left or right path, if so notify about it
| 108 | |
| 109 | // Check whether we pass a new Vertex on the left or right path, if so notify about it |
| 110 | bool SlopeWalk::notifyOnMoveDown(int64_t newyIndex) |
| 111 | { |
| 112 | bool bb = true; |
| 113 | while(mLeftVerticesIndex != mLeftVertices.end() && newyIndex < getCurrentLeftVertex().y) |
| 114 | { |
| 115 | bb = passLeftVertex(); |
| 116 | } |
| 117 | bool kk = true; |
| 118 | while(mRightVerticesIndex != mRightVertices.end() && newyIndex < getCurrentRightVertex().y) |
| 119 | { |
| 120 | kk= passRightVertex(); |
| 121 | } |
| 122 | return bb || kk ; |
| 123 | } |
| 124 | |
| 125 | // Get vertex pointed currently by index on the Left path |
| 126 | VectorInt64 SlopeWalk::getCurrentLeftVertex() |
no outgoing calls
no test coverage detected