# HG changeset patch # User Robert McIntyre # Date 1396058943 14400 # Node ID 5a15611fbb9fd98961d24ad93416f1aacbe6e9d3 # Parent 3ec428e096e5002bc109a24a57069814065f3141 make latex happy. diff -r 3ec428e096e5 -r 5a15611fbb9f thesis/cortex.org --- a/thesis/cortex.org Fri Mar 28 21:48:53 2014 -0400 +++ b/thesis/cortex.org Fri Mar 28 22:09:03 2014 -0400 @@ -1741,22 +1741,25 @@ rotation. The affine transformation from one triangle to another is readily computable if the triangle is expressed in terms of a $4x4$ matrix. - + + #+BEGIN_LaTeX + $$ \begin{bmatrix} x_1 & x_2 & x_3 & n_x \\ y_1 & y_2 & y_3 & n_y \\ z_1 & z_2 & z_3 & n_z \\ 1 & 1 & 1 & 1 \end{bmatrix} + $$ + #+END_LaTeX Here, the first three columns of the matrix are the vertices of the triangle. The last column is the right-handed unit normal of the triangle. - With two triangles $T_{1}$ and $T_{2}$ each expressed as a matrix - like above, the affine transform from $T_{1}$ to $T_{2}$ is - - $T_{2}T_{1}^{-1}$ + With two triangles $T_{1}$ and $T_{2}$ each expressed as a + matrix like above, the affine transform from $T_{1}$ to $T_{2}$ + is $T_{2}T_{1}^{-1}$. The clojure code below recapitulates the formulas above, using jMonkeyEngine's =Matrix4f= objects, which can describe any affine diff -r 3ec428e096e5 -r 5a15611fbb9f thesis/rlm-cortex-meng.tex --- a/thesis/rlm-cortex-meng.tex Fri Mar 28 21:48:53 2014 -0400 +++ b/thesis/rlm-cortex-meng.tex Fri Mar 28 22:09:03 2014 -0400 @@ -36,6 +36,7 @@ \usepackage{wrapfig} \usepackage{rotating} \usepackage[normalem]{ulem} +\usepackage{mathtools} \usepackage{amsmath} \usepackage{textcomp} \usepackage{marvosym}