parser.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:occt-analysis 作者: jackfischer 项目源码 文件源码
def map_point(s): 
  '''Map point s to closest point on route, return index of route point'''
  running_min = float("inf")
  point_index = None #index of closest point on map
  for i, p in enumerate(points):
    dist = distance(p, s).miles
    if dist < running_min:
      running_min = dist
      point_index = i
  return point_index
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号