1  distance: function (p1, p2) {
2             var result = Math.sqrt(Math.pow(Math.abs(p1.x - p2.x), 2) + Math.pow(Math.abs(p1.y - p2.y), 2));
3             return result;
4         }

 

相关文章:

  • 2022-12-23
  • 2021-12-10
  • 2021-12-10
  • 2022-02-17
  • 2021-07-20
  • 2021-11-24
  • 2022-01-23
猜你喜欢
  • 2022-12-23
  • 2021-08-26
  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
  • 2021-12-24
  • 2022-01-30
相关资源
相似解决方案