3.3.  Euler transformation #

An Euler transformation is done with three counterclockwise object rotations around following the axes: x-axis, y-axis, or z-axis. Use cases are:

The input syntax of an Euler transformation is:

angle1, angle2, angle3 [, axes ]

where axes is an optional 3 letter code with letters : X, Y, or Z. Default is ZXZ. angleN is any valid angle with the input format RAD, DEG, or DMS.

To do a transformation, you have to use a transformation operator (see Section 5.10).

Example 3.5. Create a transformation object

Create a transformation object to rotate a spherical object counterclockwise, first 20° around the x-axis, second -270° around the z-axis and last 70.5° around the y-axis.

sql> SELECT strans '20d, -270d, 70.5d, XZY';
              

Example 3.6.  Create a second transformation object

Create a transformation object to rotate a spherical object counterclockwise, first 2° 20' around the z-axis, second 10° around the x-axis, and last 0° around the z-axis.

sql> SELECT strans '2d 20m, 10d, 0';