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
27namespace Titanic {
28
29class CMatrixTransform;
30
31/*
32 * This class combines a position and orientation in 3D space
33 */
34class FPose : public FMatrix {
35public:
36 FVector _vector;
37public:
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
76
81
88
94 FPose compose2(const FPose &m);
95};
96
102void fposeProd(const FPose &a, const FPose &m, FPose &C);
103
104} // End of namespace Titanic
105
106#endif /* TITANIC_FPOSE_H */
Definition: matrix_transform.h:31
Definition: fmatrix.h:35
Definition: fpose.h:34
FPose compose(const FMatrix &m)
void rotVectAxisY(double angleDeg)
void copyFrom(const FMatrix &src)
void loadTransform(const CMatrixTransform &src)
FPose inverseTransform() const
FPose(const FPose &s1, const FPose &s2)
FPose compose2(const FPose &m)
void copyFrom(const FPose &src)
void setRotationMatrix(Axis axis, float val)
Definition: fvector.h:36