| Algorithm 2 Strategy 2: Hand position with threshold. |
| Input: Hand position , threshold distance . |
| Output: Best point in the set of , . |
| 1: Build a k-d tree for all points in the scene. |
| 2: function ST2(, ) |
| 3: ← best from k-d tree. |
| 4: if then |
| 5: |
| 6: else |
| 7: |
| 8: end if |
| 9: |
| 10: return P |
| 11: end function |