(coordinateA, coordinateB)
| 4084 | }; |
| 4085 | |
| 4086 | function getDistance(coordinateA, coordinateB) { |
| 4087 | return Math.sqrt(Math.pow(coordinateA[0] - coordinateB[0], 2) + Math.pow(coordinateA[1] - coordinateB[1], 2)); |
| 4088 | } |
| 4089 | |
| 4090 | /** |
| 4091 | * @author Mofei Zhu<mapv@zhuwenlong.com> |