3.16 systra – Rigid-body coordinate transformation¶
The systra routine transforms the global Cartesian coordinates \((\texttt{x},\texttt{y},\texttt{z})\) of a point into local coordinates \((\texttt{f},\texttt{u},\texttt{v})\). The transformation is defined by the orthonormal basis matrix vn0, whose rows contain the local f-, u-, and v-axis unit vectors expressed in global coordinates, and by vp0, the local origin expressed in global coordinates. The transformation is given by:
Fortran:
call systra(f,u,v,vn0,vp0,x,y,z)
C:
systra(&f,&u,&v,vn0,vp0,&x,&y,&z);
Python:
(f,u,v) = voft.systra(vn0,vp0,x,y,z)
Arguments:
|
|
|
scalars representing the coordinates of a point in the local reference system |
|
|
|
array of dimensions \((3,3)\) whose rows contain the unit vectors of the local |
|
|
|
array of length \((3)\) storing the origin of the local reference system in global coordinates |
|
|
|
scalars representing the coordinates of a point in the global reference system |
Note: The supplied basis vectors must be mutually orthogonal and of unit length. The routine neither normalizes nor orthogonalizes them.