| 137 | } |
| 138 | |
| 139 | std::vector<size_t> GetNeighbourIntermediatePoints(size_t checkpointIdx, size_t checkpointsCount) |
| 140 | { |
| 141 | CHECK_GREATER(checkpointsCount, 2, (checkpointsCount)); |
| 142 | std::vector<size_t> neighbours; |
| 143 | // We add left intermediate point: |
| 144 | if (checkpointIdx > 1) |
| 145 | neighbours.push_back(checkpointIdx - 1); |
| 146 | // We add right intermediate point: |
| 147 | if (checkpointIdx < checkpointsCount - 2) |
| 148 | neighbours.push_back(checkpointIdx + 1); |
| 149 | return neighbours; |
| 150 | } |
| 151 | |
| 152 | bool GuidesConnections::FitsForDirectLinkToGuide(size_t checkpointIdx, size_t checkpointsCount) const |
| 153 | { |
no test coverage detected