I use a program that reads the content of .x file and stores it into a file that my game uses to load graphic data. I have problems calculating points using the two transformation matrices that are in my .x file.

.x matrices:

Code:

Frame RootFrame {
FrameTransformMatrix {
1.000000,0.000000,0.000000,0.000000,
0.000000,1.000000,0.000000,0.000000,
0.000000,0.000000,-1.000000,0.000000,
0.000000,0.000000,0.000000,1.000000;;
}
Frame Cube_005 {
FrameTransformMatrix {
0.115300,0.000000,0.192300,0.000000,
-0.000000,0.224200,-0.000000,0.000000,
-0.192300,-0.000000,0.115300,0.000000,
6.861500,0.000000,0.187800,1.000000;;
}

In Microsoft documentation I found the way I should calculate the points, but it seems that either I don't understand it correctly or it just doesn't work:

Transforms (Direct3D 9)

Here's the thing I do:

Code:

x=x*1.0+y*0.0+z*0.0+0.0;
x=x*0.1153+y*0.0+z*(-0.1923)+6.8615;
y=x*0.0+y*1.0+z*0.0+0.0;
y=x*0.0+y*0.2242+z*0.0+0.0;
z=x*0.0+y*0.0+z*(-1.0)+0.0;
z=x*0.1923+y*0.0+z*0.1153+0.1878;

Of course in code I don't use constant, I just put them in so it would be more clear.

What do I do wrong?