### matrix transformation for hard and soft calibration

Hello guys,

i was looking for a software to make the calibration of my data and i found the magmaster develloped by YURI, i was looking to the open source code and i don't understand some stuff, i don't know if someone did already understood the code of the magmaster,

I'd like to know how did he done to have the rotation matrix:

because i saw that the rotation matrix on his code is in the form of:

// Rotation matrix--------------------------------------------------------------------------------------            // rotation_matrix[a][b], a - number of the rows, b - number of the columbs

rotation_matrix[0] = new double[3];            rotation_matrix[1] = new double[3];            rotation_matrix[2] = new double[3];

//Deviding by main value, for example for X axis - deviding by X coordinate, for Y axis by Y coordinate, for Z axis by Z cordinate

rotation_matrix[0][0] = Xvector[0] / Xvector[0]; rotation_matrix[0][1] = Yvector[0] / Yvector[1]; rotation_matrix[0][2] = Zvector[0] / Zvector[2];  rotation_matrix[1][0] = Xvector[1] / Xvector[0]; rotation_matrix[1][1] = Yvector[1] / Yvector[1]; rotation_matrix[1][2] = Zvector[1] / Zvector[2];            rotation_matrix[2][0] = Xvector[2] / Xvector[0]; rotation_matrix[2][1] = Yvector[2] / Yvector[1]; rotation_matrix[2][2] = Zvector[2] / Zvector[2];            //Matrix inversion            rotation_matrix = InvertMatrix(rotation_matrix);

I know that in the rotation matrix we find cos and sin but in his rotation matrix he works with the coordonate of vector so i don't understand.

### Activity

Liam left a comment on Agricultural UAVs
"Hi
I'm Liam from T-MOTOR. I would like to reach out to see if there is any possibility for us to work together.
We are a propulsion system manufacturer who offers motors, propellers and ESCs for all kinds of drone applications which vary from secur…"
Jun 30
Richard Cox left a comment on Australia
"Anyone in the DIYDRONES Australian subgroup based in Alice Springs, NT?
I am experimenting with Ardupilot (standard Arduplane), Pixhawk 4 FC in a 4-ch
RC "AXN Floater Jet" foamy plane..."
Jun 29
Omar Sykes left a comment on Australia
"Hi everyone, I am looking for someone who is good at drone building, repair and software in Adelaide. Please give me a call on 0477 319 219."
Jun 29