File: conventions.rst

package info (click to toggle)
transforms3d 0.4.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,996 kB
  • sloc: python: 4,069; makefile: 103; sh: 25
file content (32 lines) | stat: -rw-r--r-- 924 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
============================
 Conventions for transforms
============================

For the transforms we have coded here, we have followed some conventions
that are not universal, but seem common enough.

Transformation matrices are matrices for application on the left,
applied to coodinates on the right, stored as column vectors.

Let's say you are transforming a set of points. The points are vectors
$v^1, v^2 \ldots v^N$, and the vectors are composed of $x$, $y$ and $z$
coordinates, so that $v^1 = \left(x^1, y^1, z^1\right)$, then your points
matrix $P$ would look like:

.. math::

   P = \left(
     \begin{matrix} 
     x^1, x^2, \ldots, x^N \\
     y^1, y^2, \ldots, y^N \\
     z^1, z^2, \ldots, z^N \\
     \end{matrix}
     \right)
   
If we are applying a 3x3 transformation matrix $M$, to transform points
$P$, then the transformed points $v^{\prime}$ are given by:

.. math::

   v^\prime = M \cdot P