Three dimensional vectors in the Euclidean space are represented by variables of the class vector3d.
Cartesian Coordinates
The standard way to define specimen directions is by its x, y and z coordinates.
This gives a single vector with coordinates (1,1,0) with respect to the X, Y, Z coordinate system. Lets visualize this vector
Note that the alignment of the X, Y, Z axes is only a plotting convention, which can be easily changed without changing the coordinates, e.g., by setting
One can easily access the coordinates of any vector by
or change it by
Polar Coordinates
A second way to define specimen directions is by polar coordinates, i.e. by its polar angle and its azimuth angle. This is done by the option polar.
Analogously as for the Cartesian coordinates we can access and change polar coordinates directly by