OpenSiv3D icon indicating copy to clipboard operation
OpenSiv3D copied to clipboard

直線と直線の交点の計算

Open sthairno opened this issue 3 years ago • 0 comments

(線分ではなく)直線同士の交点が計算できると良いなと思いました。 1次関数を使う方法では傾きがx軸に近いほど不都合なので、外積を使った計算もあるようです。

1次関数を使った方法 https://mathwords.net/nityokusenkoten

外積を使った方法 https://www.nekonecode.com/math-lab/pages/collision2/line-and-line-pos/

sthairno avatar Jan 30 '22 10:01 sthairno