Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ここで黒い点が線を引きます。n個の点がある場合があります。私の問題は、緑色の点と線の間の最短距離を見つけることです(黒い点ではありません)
線と点の間の距離は、次の項目ですでに回答されています: 点と線分の間の最短距離
すべての線分をループして最短のものを見つけるために、別の部分を追加するだけです。