ScummVM API documentation
fpose.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef TITANIC_FPOSE_H
23 #define TITANIC_FPOSE_H
24 
25 #include "titanic/star_control/fmatrix.h"
26 
27 namespace Titanic {
28 
29 class CMatrixTransform;
30 
31 /*
32  * This class combines a position and orientation in 3D space
33  */
34 class FPose : public FMatrix {
35 public:
36  FVector _vector;
37 public:
38  FPose();
39  FPose(Axis axis, float amount);
40  FPose(int mode, const FVector &src);
44  FPose(const FPose &s1, const FPose &s2);
45 
49  void identity();
50 
54  void setRotationMatrix(Axis axis, float val);
55 
59  void rotVectAxisY(double angleDeg);
63  void copyFrom(const FPose &src);
64 
68  void copyFrom(const FMatrix &src);
69 
75  void loadTransform(const CMatrixTransform &src);
76 
80  FPose inverseTransform() const;
81 
87  FPose compose(const FMatrix &m);
88 
94  FPose compose2(const FPose &m);
95 };
96 
102 void fposeProd(const FPose &a, const FPose &m, FPose &C);
103 
104 } // End of namespace Titanic
105 
106 #endif /* TITANIC_FPOSE_H */
Definition: fmatrix.h:35
FPose compose2(const FPose &m)
FPose compose(const FMatrix &m)
Definition: fpose.h:34
Definition: arm.h:30
Definition: matrix_transform.h:31
FPose inverseTransform() const
void loadTransform(const CMatrixTransform &src)
Definition: fvector.h:36
void setRotationMatrix(Axis axis, float val)
void copyFrom(const FPose &src)
void rotVectAxisY(double angleDeg)