Last change
on this file since 8462 was
6617,
checked in by bensch, 19 years ago
|
trunk: split Rotation/Line/Quaternion/Plane(Rectangle) into seperate files
|
File size:
1.2 KB
|
Line | |
---|
1 | /* |
---|
2 | orxonox - the future of 3D-vertical-scrollers |
---|
3 | |
---|
4 | Copyright (C) 2004 orx |
---|
5 | |
---|
6 | This program is free software; you can redistribute it and/or modify |
---|
7 | it under the terms of the GNU General Public License as published by |
---|
8 | the Free Software Foundation; either version 2, or (at your option) |
---|
9 | any later version. |
---|
10 | |
---|
11 | ### File Specific: |
---|
12 | main-programmer: Christian Meyer |
---|
13 | co-programmer: ... |
---|
14 | */ |
---|
15 | |
---|
16 | /*! |
---|
17 | * @file rotation_OBSOLETE.h |
---|
18 | * A basic 3D rotation framework |
---|
19 | * |
---|
20 | * THIS IS AN OBSOLETE FRAMEWORK, AND WILL BE DELETED SOON |
---|
21 | * |
---|
22 | * |
---|
23 | * Contains classes to handle vectors, lines, rotations and planes |
---|
24 | */ |
---|
25 | |
---|
26 | #ifndef __ROTATION_H_ |
---|
27 | #define __ROTATION_H_ |
---|
28 | |
---|
29 | #include "vector.h" |
---|
30 | |
---|
31 | //! 3D rotation (OBSOLETE) |
---|
32 | /** |
---|
33 | Class to handle 3-dimensional rotations. |
---|
34 | Can create a rotation from several inputs, currently stores rotation using a 3x3 Matrix |
---|
35 | */ |
---|
36 | class Rotation { |
---|
37 | public: |
---|
38 | |
---|
39 | float m[9]; //!< 3x3 Rotation Matrix |
---|
40 | |
---|
41 | Rotation ( const Vector& v); |
---|
42 | Rotation ( const Vector& axis, float angle); |
---|
43 | Rotation ( float pitch, float yaw, float roll); |
---|
44 | Rotation (); |
---|
45 | ~Rotation () {} |
---|
46 | |
---|
47 | Rotation operator* (const Rotation& r); |
---|
48 | |
---|
49 | void glmatrix (float* buffer); |
---|
50 | }; |
---|
51 | |
---|
52 | //!< Apply a rotation to a vector |
---|
53 | Vector rotateVector( const Vector& v, const Rotation& r); |
---|
54 | |
---|
55 | |
---|
56 | #endif /* __ROTATION_H_ */ |
---|
57 | |
---|
Note: See
TracBrowser
for help on using the repository browser.