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.
直線の方程式、点 A と距離があり、直線上の距離の端にある点 B を見つける必要があります。私は2つの方程式を持っています:
distance = math.sqrt((pt1[0] - pt2[0])**2 + (pt1[1] - pt2[1])**2) pt2[1] = m*pt2[0] + n
距離、pt1、m、n は既知です。
この計算を Python で実装するにはどうすればよいですか? 多分私のためにこれを行うことができるPythonライブラリがありますか?