- RotateX:=RotateX*(PI/180);
- RotateY:=RotateY*(PI/180);
- RotateZ:=RotateZ*(PI/180);
- VertexArray.Matrix[1]:=cos(RotateX);
- VertexArray.Matrix[2]:=sin(RotateX);
- VertexArray.Matrix[3]:=-sin(RotateX);
- VertexArray.Matrix[5]:=-sin(RotateY);
- VertexArray.Matrix[6]:=cos(RotateY);
- VertexArray.Matrix[7]:=sin(RotateY);
- VertexArray.Matrix[9]:=sin(RotateZ);
- VertexArray.Matrix[10]:=-sin(RotateZ);
- VertexArray.Matrix[11]:=cos(RotateZ);