Skip to content

Commit

Permalink
Add Nearest points of two skew lines
Browse files Browse the repository at this point in the history
  • Loading branch information
baluteshih committed Oct 20, 2023
1 parent 307b35e commit 7304de1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions codebook/6_Math/Theorem.tex
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,16 @@
\item The solution corresponding to the original constrained optimization is always a saddle point of the Lagrangian function.
\end{itemize}

\item Nearest points of two skew lines

\begin{itemize}
\item $\text{Line 1}: \boldsymbol{v}_1 = \boldsymbol{p} + t_1\boldsymbol{d}_1$
\item $\text{Line 2}: \boldsymbol{v}_2 = \boldsymbol{p} + t_2\boldsymbol{d}_2$
\item $\boldsymbol{n} = \boldsymbol{d}_1\times \boldsymbol{d}_2$
\item $\boldsymbol{n}_1 = \boldsymbol{d}_1 \times \boldsymbol{n}$
\item $\boldsymbol{n}_2 = \boldsymbol{d}_2 \times \boldsymbol{n}$
\item $\boldsymbol{c}_1 = \boldsymbol{p}_1 + \frac{(\boldsymbol{p}_2 - \boldsymbol{p}_1)\cdot\boldsymbol{n}_2}{\boldsymbol{d}_1\cdot\boldsymbol{n}_2}\boldsymbol{d}_1$
\item $\boldsymbol{c}_2 = \boldsymbol{p}_2 + \frac{(\boldsymbol{p}_1 - \boldsymbol{p}_2)\cdot\boldsymbol{n}_1}{\boldsymbol{d}_2\cdot\boldsymbol{n}_1}\boldsymbol{d}_2$
\end{itemize}

\end{itemize}

0 comments on commit 7304de1

Please sign in to comment.