underworld3 icon indicating copy to clipboard operation
underworld3 copied to clipboard

Coordinate transformation matrix does not match the naming convention of it's function

Open gthyagi opened this issue 1 year ago • 0 comments

Hi,

mesh.CoordinateSystem.rRotN should gives a matrix to convert coordinates in reference frame (i.e., spherical/Annulus) to native frame (i.e., xyz). However, currently it output a matrix that map N --> r instead of r --> N.

Screenshot 2024-02-07 at 11 37 10 pm

which is

$$
\begin{bmatrix}
\cos(\theta) & \sin(\theta) \\
-\sin(\theta) & \cos(\theta) \\
\end{bmatrix}
$$

But actual matrix should be Screenshot 2024-02-07 at 11 47 14 pm

Note: By taking transpose will output the right one.

gthyagi avatar Feb 07 '24 12:02 gthyagi