Doc: Transform explanation swaps row and column

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By MikeMikeMike

Hi…,

isn’t the godot 3.2 transform doc wrong, it swaps row and column:
https://docs.godotengine.org/en/stable/classes/class_transform.html

3×4 matrix (3 rows, 4 columns) used for 3D linear transformations. It can represent transformations such as translation, rotation, or scaling. It consists of a basis (first 3 columns) and a Vector3 for the origin (last column).

should be:

3×4 matrix (3 columns, 4 rows) used for 3D linear transformations. It can represent transformations such as translation, rotation, or scaling. It consists of a basis (first 3 rows) and a Vector3 for the origin (last row).

Thanks

Mike

If it’s wrong, you might want to submit an issue on Github.

exuin | 2021-03-01 18:41

Hi exuin, thank you for the link. I am not in at Github right now, sorry. Also I am not sure anymore where the transformation vector is, bellow or on the right side of the 3x3 basis matrix, for sure both would work. I would be happy to see a picture of the 3D transform with columns and rows. Thanks again

MikeMikeMike | 2021-03-02 19:04

:bust_in_silhouette: Reply From: Aaron Franke

No, the documentation is correct. Transform has 3 rows and 4 columns. The first 3 columns are the basis, the last column is the origin.