| Algorithm 2: Waypoint generation. |
| Notation: Object , Object set , 2-D UAV position , Waypoint set , Waypoint |
| Initialize: |
| Input:, |
| for in |
| intersect(, ) |
| .push_back() |
| .next() |
| sort() |
| return |
| Algorithm 2: Waypoint generation. |
| Notation: Object , Object set , 2-D UAV position , Waypoint set , Waypoint |
| Initialize: |
| Input:, |
| for in |
| intersect(, ) |
| .push_back() |
| .next() |
| sort() |
| return |