飛行機の中で
2行 平行でない2本の直線の交点を決定するために
1 1 x + b 1 y = c 1 、 1 2 x + b 2 y = c 2 {\displaystyle a_{1}x+b_{1}y=c_{1},\ a_{2}x+b_{2}y=c_{2}}
クラメルの公式 を用いるか、変数を代入することで、交点の座標が得られる。( x s 、 y s ) {\displaystyle (x_{s},y_{s})} :
x s = c 1 b 2 − c 2 b 1 1 1 b 2 − 1 2 b 1 、 y s = 1 1 c 2 − 1 2 c 1 1 1 b 2 − 1 2 b 1 。 {\displaystyle x_{s}={\frac {c_{1}b_{2}-c_{2}b_{1}}{a_{1}b_{2}-a_{2}b_{1}}},\quad y_{s}={\frac {a_{1}c_{2}-a_{2}c_{1}}{a_{1}b_{2}-a_{2}b_{1}}}.\ } (もし1 1 b 2 − 1 2 b 1 = 0 {\displaystyle a_{1}b_{2}-a_{2}b_{1}=0} 線は平行であり、これらの式はゼロ除算を含むため使用できません。
2つの線分 2つの線分の交点 平行でない2つの線分の場合 ( x 1 、 y 1 ) 、 ( x 2 、 y 2 ) {\displaystyle (x_{1},y_{1}),(x_{2},y_{2})} そして( x 3 、 y 3 ) 、 ( x 4 、 y 4 ) {\displaystyle (x_{3},y_{3}),(x_{4},y_{4})} 必ずしも交点が存在するとは限らない(図を参照)。なぜなら交点が( x 0 、 y 0 ) {\displaystyle (x_{0},y_{0})} 対応する線分は、線分内に含まれる必要はありません。この状況を確認するために、線分のパラメトリック表現を使用します。
( x ( s ) 、 y ( s ) ) = ( x 1 + s ( x 2 − x 1 ) 、 y 1 + s ( y 2 − y 1 ) ) 、 {\displaystyle (x(s),y(s))=(x_{1}+s(x_{2}-x_{1}),y_{1}+s(y_{2}-y_{1})),} ( x ( t ) 、 y ( t ) ) = ( x 3 + t ( x 4 − x 3 ) 、 y 3 + t ( y 4 − y 3 ) ) 。 {\displaystyle (x(t),y(t))=(x_{3}+t(x_{4}-x_{3}),y_{3}+t(y_{4}-y_{3})).} 線分は一点でのみ交わる。( x 0 、 y 0 ) {\displaystyle (x_{0},y_{0})} 対応するパラメータがs 0 、 t 0 {\displaystyle s_{0},t_{0}} 条件を満たす0 ≤ s 0 、 t 0 ≤ 1 {\displaystyle 0\leq s_{0},t_{0}\leq 1} パラメータs 0 、 t 0 {\displaystyle s_{0},t_{0}} 線形システムの解
s ( x 2 − x 1 ) − t ( x 4 − x 3 ) = x 3 − x 1 、 {\displaystyle s(x_{2}-x_{1})-t(x_{4}-x_{3})=x_{3}-x_{1},} s ( y 2 − y 1 ) − t ( y 4 − y 3 ) = y 3 − y 1 。 {\displaystyle s(y_{2}-y_{1})-t(y_{4}-y_{3})=y_{3}-y_{1}\ .} s とt については、クラメルの公式(上記 参照)を用いて解くことができます。条件が0 ≤ s 0 、 t 0 ≤ 1 {\displaystyle 0\leq s_{0},t_{0}\leq 1} 1つの挿入が満たされるs 0 {\displaystyle s_{0}} またはt 0 {\displaystyle t_{0}} 対応するパラメトリック表現に変換し、交点を取得する( x 0 、 y 0 ) {\displaystyle (x_{0},y_{0})} 。
例: 線分の場合( 1 、 1 ) 、 ( 3 、 2 ) {\displaystyle (1,1),(3,2)} そして( 1 、 4 ) 、 ( 2 、 − 1 ) {\displaystyle (1,4),(2,-1)} 線形システムが得られる
2 s − t = 0 {\displaystyle 2s-t=0} s + 5 t = 3 {\displaystyle s+5t=3} そしてs 0 = 3 11 、 t 0 = 6 11 {\displaystyle s_{0}={\tfrac {3}{11}},t_{0}={\tfrac {6}{11}}} つまり、線は点で交差する。( 17 11 、 14 11 ) {\displaystyle ({\tfrac {17}{11}},{\tfrac {14}{11}})} 。
注記: 点のペアによって決定される線分ではなく直線を考慮すると、各条件は0 ≤ s 0 、 t 0 ≤ 1 {\displaystyle 0\leq s_{0},t_{0}\leq 1} 削除することができ、この方法では線の交点が得られます(上記を 参照)。
2つの円 2つの円の交点の決定
( x − x 1 ) 2 + ( y − y 1 ) 2 = r 1 2 、 ( x − x 2 ) 2 + ( y − y 2 ) 2 = r 2 2 {\displaystyle (x-x_{1})^{2}+(y-y_{1})^{2}=r_{1}^{2},\ \quad (x-x_{2})^{2}+(y-y_{2})^{2}=r_{2}^{2}} これは、直線と円の交点を求めるという前述のケースに帰着します。与えられた2つの方程式を引き算すると、直線の方程式が得られます。
2 ( x 2 − x 1 ) x + 2 ( y 2 − y 1 ) y = r 1 2 − x 1 2 − y 1 2 − r 2 2 + x 2 2 + y 2 2 。 {\displaystyle 2(x_{2}-x_{1})x+2(y_{2}-y_{1})y=r_{1}^{2}-x_{1}^{2}-y_{1}^{2}-r_{2}^{2}+x_{2}^{2}+y_{2}^{2}.} この特別な線は、2つの円の根号線です。
x軸上に中心を持つ2つの円の交点。その根線は濃い赤色で示されている。 特別なケースx 1 = y 1 = y 2 = 0 {\displaystyle \;x_{1}=y_{1}=y_{2}=0} この場合、 原点は最初の円の中心であり、2番目の中心はx軸上にあります(図参照)。根号線の式は次のように簡略化されます。2 x 2 x = r 1 2 − r 2 2 + x 2 2 {\displaystyle \;2x_{2}x=r_{1}^{2}-r_{2}^{2}+x_{2}^{2}\;} 交点は次のように表すことができます。( x 0 、 ± y 0 ) {\displaystyle (x_{0},\pm y_{0})} と
x 0 = r 1 2 − r 2 2 + x 2 2 2 x 2 、 y 0 = r 1 2 − x 0 2 。 {\displaystyle x_{0}={\frac {r_{1}^{2}-r_{2}^{2}+x_{2}^{2}}{2x_{2}}},\quad y_{0}={\sqrt {r_{1}^{2}-x_{0}^{2}}}\ .} の場合r 1 2 < x 0 2 {\displaystyle r_{1}^{2}<x_{0}^{2}} これらの円には共通点がありません。r 1 2 = x 0 2 {\displaystyle r_{1}^{2}=x_{0}^{2}} これらの円は共通点を1つ持ち、根号線は共通の接線である。
上記のような一般的なケースは、シフトと回転によって特殊なケースに変換することができる。
2つの円盤 (2つの円の内部)の交わりによって、レンズ と呼ばれる形状が形成されます。
円と楕円の交点
2つの円錐曲線 The problem of intersection of an ellipse/hyperbola/parabola with another conic section leads to a system of quadratic equations , which can be solved in special cases easily by elimination of one coordinate. Special properties of conic sections may be used to obtain a solution . In general the intersection points can be determined by solving the equation by a Newton iteration. If a) both conics are given implicitly (by an equation) a 2-dimensional Newton iteration b) one implicitly and the other parametrically given a 1-dimensional Newton iteration is necessary. See next section.
Two smooth curves A transversal intersection of two curves touching intersection (left), touching (right) Two curves in R 2 {\displaystyle \mathbb {R} ^{2}} (two-dimensional space), which are continuously differentiable (i.e. there is no sharp bend), have an intersection point, if they have a point of the plane in common and have at this point (see diagram):
a) different tangent lines (transversal intersection , after transversality ), or b) the tangent line in common and they are crossing each other (touching intersection , after tangency ). If both the curves have a point S and the tangent line there in common but do not cross each other, they are just touching at point S .
Because touching intersections appear rarely and are difficult to deal with, the following considerations omit this case. In any case below all necessary differential conditions are presupposed. The determination of intersection points always leads to one or two non-linear equations which can be solved by Newton iteration. A list of the appearing cases follows:
intersection of a parametric curve and an implicit curve intersection of two implicit curves If both curves are explicitly given: y = f 1 ( x ) , y = f 2 ( x ) {\displaystyle y=f_{1}(x),\ y=f_{2}(x)} , equating them yields the equation f 1 ( x ) = f 2 ( x ) . {\displaystyle f_{1}(x)=f_{2}(x)\ .} If both curves are parametrically given: C 1 : ( x 1 ( t ) , y 1 ( t ) ) , C 2 : ( x 2 ( s ) , y 2 ( s ) ) . {\displaystyle C_{1}:(x_{1}(t),y_{1}(t)),\ C_{2}:(x_{2}(s),y_{2}(s)).} Equating them yields two equations in two variables: x 1 ( t ) = x 2 ( s ) , y 1 ( t ) = y 2 ( s ) . {\displaystyle x_{1}(t)=x_{2}(s),\ y_{1}(t)=y_{2}(s)\ .} If one curve is parametrically and the other implicitly given: C 1 : ( x 1 ( t ) , y 1 ( t ) ) , C 2 : f ( x , y ) = 0. {\displaystyle C_{1}:(x_{1}(t),y_{1}(t)),\ C_{2}:f(x,y)=0.} This is the simplest case besides the explicit case. One has to insert the parametric representation of C 1 {\displaystyle C_{1}} into the equation f ( x , y ) = 0 {\displaystyle f(x,y)=0} of curve C 2 {\displaystyle C_{2}} and one gets the equation: f ( x 1 ( t ) , y 2 ( t ) ) = 0 . {\displaystyle f(x_{1}(t),y_{2}(t))=0\ .} If both curves are implicitly given: C 1 : f 1 ( x , y ) = 0 , C 2 : f 2 ( x , y ) = 0. {\displaystyle C_{1}:f_{1}(x,y)=0,\ C_{2}:f_{2}(x,y)=0.} Here, an intersection point is a solution of the system f 1 ( x , y ) = 0 , f 2 ( x , y ) = 0 . {\displaystyle f_{1}(x,y)=0,\ f_{2}(x,y)=0\ .} ニュートン法の反復には、曲線を視覚化することで得られる便利な初期値が必要です。パラメトリックまたは明示的に与えられた曲線は、任意のパラメータt またはx に対して対応する点を簡単に計算できるため、簡単に視覚化できます。暗黙的に与えられた曲線の場合、この作業はそれほど簡単ではありません。この場合、初期値と反復を使用して曲線上の点を決定する必要があります。[ 2 ]を参照してください。
例:
1:C 1 : ( t 、 t 3 ) {\displaystyle C_{1}:(t,t^{3})} そして円C 2 : ( x − 1 ) 2 + ( y − 1 ) 2 − 10 = 0 {\displaystyle C_{2}:(x-1)^{2}+(y-1)^{2}-10=0} (図を参照)。 ニュートン反復法t n + 1 := t n − f ( t n ) f ′ ( t n ) {\displaystyle t_{n+1}:=t_{n}-{\frac {f(t_{n})}{f'(t_{n})}}} 関数 f ( t ) = ( t − 1 ) 2 + ( t 3 − 1 ) 2 − 10 {\displaystyle f(t)=(t-1)^{2}+(t^{3}-1)^{2}-10} 実行する必要があります。開始値としては、-1と1.5を選択できます。 交点は次のとおりです: (−1.1073, −1.3578)、(1.6011, 4.1046) 2:C 1 : f 1 ( x 、 y ) = x 4 + y 4 − 1 = 0 、 {\displaystyle C_{1}:f_{1}(x,y)=x^{4}+y^{4}-1=0,} C 2 : f 2 ( x 、 y ) = ( x − 0.5 ) 2 + ( y − 0.5 ) 2 − 1 = 0 {\displaystyle C_{2}:f_{2}(x,y)=(x-0.5)^{2}+(y-0.5)^{2}-1=0} (図を参照)。ニュートン反復法 ( x n + 1 y n + 1 ) = ( x n + δ x y n + δ y ) {\displaystyle {x_{n+1} \choose y_{n+1}}={x_{n}+\delta _{x} \choose y_{n}+\delta _{y}}} 実行する必要がある場所( δ x δ y ) {\displaystyle {\delta _{x} \choose \delta _{y}}} 線形システムの解は( ∂ f 1 ∂ x ∂ f 1 ∂ y ∂ f 2 ∂ x ∂ f 2 ∂ y ) ( δ x δ y ) = ( − f 1 − f 2 ) {\displaystyle {\begin{pmatrix}{\frac {\partial f_{1}}{\partial x}}&{\frac {\partial f_{1}}{\partial y}}\\{\frac {\partial f_{2}}{\partial x}}&{\frac {\partial f_{2}}{\partial y}}\end{pmatrix}}{\delta _{x} \choose \delta _{y}}={-f_{1} \choose -f_{2}}} 地点で( x n 、 y n ) {\displaystyle (x_{n},y_{n})} 開始値としては、(−0.5, 1)と(1, −0.5)を選択できます。 この線形方程式系は、クラメルの公式を用いて解くことができる。 交点は(−0.3686, 0.9953)と(0.9953, −0.3686)です。
2つの多角形 2つの多角形の交差:ウィンドウテスト 2 つの多角形 の交点を決定したい場合は、多角形の任意の線分のペアの交点をチェックできます (上記 参照)。セグメントが多い多角形の場合、この方法はかなり時間がかかります。実際には、ウィンドウ テスト を使用して交点アルゴリズムを高速化します。この場合、多角形を小さなサブ多角形に分割し、任意のサブ多角形に対して最小のウィンドウ (座標軸に平行な辺を持つ長方形) を決定します。2 つの線分の交点の時間のかかる決定を開始する前に、任意のウィンドウのペアに共通点があるかどうかをテストします。参照。[ 3 ]
空間(三次元)において3次元空間では、曲線と曲面の間に交点(共通点)が存在します。以下のセクションでは、横断的な 交点 のみを考察します。
線と平面 線と平面の交点 3次元空間において、直線と平面が一般の位置 関係で 交わる点は点である。
一般的に、空間内の線はパラメトリックに表現される。 ( x ( t ) 、 y ( t ) 、 z ( t ) ) {\displaystyle (x(t),y(t),z(t))} そして方程式による平面1 x + b y + c z = d {\displaystyle ax+by+cz=d} パラメータ表現を方程式に代入すると、線形方程式が得られる。
1 x ( t ) + b y ( t ) + c z ( t ) = d 、 {\displaystyle ax(t)+by(t)+cz(t)=d\ ,} パラメータの場合t 0 {\displaystyle t_{0}} 交点の( x ( t 0 ) 、 y ( t 0 ) 、 z ( t 0 ) ) {\displaystyle (x(t_{0}),y(t_{0}),z(t_{0}))} 。
線形方程式に解がない場合、その直線は平面上にあるか、平面に平行である。
3機の飛行機 直線が2つの交差する平面によって定義される場合ε 私 : n → 私 ⋅ x → = d 私 、 私 = 1 、 2 {\displaystyle \varepsilon _{i}:\ {\vec {n}}_{i}\cdot {\vec {x}}=d_{i},\ i=1,2} そして、第三の平面と交差するべきであるε 3 : n → 3 ⋅ x → = d 3 {\displaystyle \varepsilon _{3}:\ {\vec {n}}_{3}\cdot {\vec {x}}=d_{3}} そのため、3つの平面の共通交点を評価する必要がある。
3機の飛行機ε 私 : n → 私 ⋅ x → = d 私 、 私 = 1 、 2 、 3 {\displaystyle \varepsilon _{i}:\ {\vec {n}}_{i}\cdot {\vec {x}}=d_{i},\ i=1,2,3} 線形独立な法線ベクトルを持つn → 1 、 n → 2 、 n → 3 {\displaystyle {\vec {n}}_{1},{\vec {n}}_{2},{\vec {n}}_{3}} 交点を持つ
p → 0 = d 1 ( n → 2 × n → 3 ) + d 2 ( n → 3 × n → 1 ) + d 3 ( n → 1 × n → 2 ) n → 1 ⋅ ( n → 2 × n → 3 ) 。 {\displaystyle {\vec {p}}_{0}={\frac {d_{1}({\vec {n}}_{2}\times {\vec {n}}_{3})+d_{2}({\vec {n}}_{3}\times {\vec {n}}_{1})+d_{3}({\vec {n}}_{1}\times {\vec {n}}_{2})}{{\vec {n}}_{1}\cdot ({\vec {n}}_{2}\times {\vec {n}}_{3})}}\ .} 証明のためには、n → 私 ⋅ p → 0 = d 私 、 私 = 1 、 2 、 3 、 {\displaystyle {\vec {n}}_{i}\cdot {\vec {p}}_{0}=d_{i},\ i=1,2,3,} スカラー三重積 の規則を使用します。スカラー三重積が 0 に等しい場合、平面は三重交点を持たないか、直線になります (または、3 つの平面がすべて同じ場合は平面になります)。
曲線と曲面 曲線の交点( t 、 t 2 、 t 3 ) {\displaystyle (t,t^{2},t^{3})} 表面付きx 4 + y 4 + z 4 = 1 {\displaystyle x^{4}+y^{4}+z^{4}=1} 平面の場合と同様に、以下のケースでは非線形システムが生じ、1次元または3次元のニュートン反復法を用いて解くことができる。[ 4 ]
パラメトリック曲線C : ( x ( t ) 、 y ( t ) 、 z ( t ) ) {\displaystyle C:(x(t),y(t),z(t))} そして パラメトリック曲面 S : ( x ( u 、 v ) 、 y ( u 、 v ) 、 z ( u 、 v ) ) 、 {\displaystyle S:(x(u,v),y(u,v),z(u,v))\ ,} パラメトリック曲線C : ( x ( t ) 、 y ( t ) 、 z ( t ) ) {\displaystyle C:(x(t),y(t),z(t))} そして 暗黙の表面 S : f ( x 、 y 、 z ) = 0 。 {\displaystyle S:f(x,y,z)=0\ .} 例:
パラメトリック曲線C : ( t 、 t 2 、 t 3 ) {\displaystyle C:(t,t^{2},t^{3})} そして 暗黙の表面S : x 4 + y 4 + z 4 − 1 = 0 {\displaystyle S:x^{4}+y^{4}+z^{4}-1=0} (写真参照) 交点は (−0.8587, 0.7374, −0.6332)、(0.8587, 0.7374, 0.6332) です。 直線と球の交点は 、単純な特殊なケースである。
直線と平面の場合と同様に、曲線と曲面の交点は、一般的な位置 では 離散的な点から構成されるが、曲線は曲面内に部分的に、あるいは完全に含まれる場合がある。
2つの表面 2つの曲面が交差すると、交曲線 ができます。最も単純な例は、平行でない2つの平面の交線です。
球と平面 球と平面の交点が空集合または一点でない場合、それは円になります。これは次のように説明できます。
S を中心 O の球、Pを S と交わる平面とする。OEを P に垂直に引き、Pとの交点を E とする。交点内の任意の 2 つの異なる点をA とBとする。すると、 AOE とBOE は 共通の辺OE を持ち、斜辺AO とBO が 等しい直角三角形となる。したがって、残りの辺AE とBE も等しい。これにより、交点内のすべての点が平面P内の点 E から同じ距離にあることが証明される。言い換えれば、交点内のすべての点は中心Eの円 C 上にある。[ 5 ] これにより、 P とS の交点がC に含まれることが証明される。OE は円の軸であることに注意する 。
ここで、円C の点D を考えます。Cは P 内にあるので、D も P 内にあります。一方、三角形AOE とDOE は、共通の辺 OE を持ち、2辺EA とED が等しい直角三角形です。したがって、斜辺AO とDO は等しく、 S の半径に等しいので、D は S 内にあります。これにより、C は P とS の交点に含まれることが証明されます。
その結果として、球面上には、与えられた3点を通る円がちょうど1つだけ存在する。[ 6 ]
この証明は、円上の点がすべてその極のいずれかから共通の角度距離 にあることを示すように拡張できる。 [ 7 ]
円錐曲線 も比較してみてください。円錐曲線は楕円 を生成することができます。