Connect two Line Segments

前端 未结 7 2206
你的背包
你的背包 2021-01-02 12:07

Given two 2D line segments, A and B, how do I calculate the length of the shortest 2D line segment, C, which connects A and B?

7条回答
  •  轮回少年
    2021-01-02 12:19

    This page has a nice short description for finding the shortest distance between two lines, although @strager's link includes some code (in Fortran!)

提交回复
热议问题