<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>线和面的相交性 on MU</title><link>https://choy-mutao.github.io/geometry_10/%E5%9F%BA%E7%A1%80%E5%87%A0%E4%BD%95/algorithm/line_and_plane_intersection/</link><description>Recent content in 线和面的相交性 on MU</description><generator>Hugo</generator><language>zh-cn</language><atom:link href="https://choy-mutao.github.io/geometry_10/%E5%9F%BA%E7%A1%80%E5%87%A0%E4%BD%95/algorithm/line_and_plane_intersection/index.xml" rel="self" type="application/rss+xml"/><item><title>直线和线段的相交求解</title><link>https://choy-mutao.github.io/geometry_10/%E5%9F%BA%E7%A1%80%E5%87%A0%E4%BD%95/algorithm/line_and_plane_intersection/line_and_segment/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://choy-mutao.github.io/geometry_10/%E5%9F%BA%E7%A1%80%E5%87%A0%E4%BD%95/algorithm/line_and_plane_intersection/line_and_segment/</guid><description>描述 在求解 2D 和 3D 的线段与直线的相交性时, 一般采用 “参数方程” 来描述两者
参数方程 直线 $$P(s) = P_0 + s(P_1 - P_0) = P_0 + s*\vec{u} \\ 其中, s = d(P_0, P(s)) / d(P_0, P_1)$$同理可定义另一条直线的方程 \(Q(t) = Q_0 + v(Q_1 - Q_0) = Q_0 + t*\vec{v}\)
平行线 当且仅当 \(\vec{u} = a\vec{v}, \ \vec{u} = P_1-P_0, \ \vec{v} = Q_1 - Q_0\)
非平行线</description></item></channel></rss>