SCL  1.0
Standard Control Library : Control, dynamics, physics, and simulation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Groups Pages
TaoDeTransform.h
1 /* Copyright (c) 2005 Arachi, Inc. and Stanford University. All rights reserved.
2  *
3  * Permission is hereby granted, free of charge, to any person obtaining
4  * a copy of this software and associated documentation files (the
5  * "Software"), to deal in the Software without restriction, including
6  * without limitation the rights to use, copy, modify, merge, publish,
7  * distribute, sublicense, and/or sell copies of the Software, and to
8  * permit persons to whom the Software is furnished to do so, subject
9  * to the following conditions:
10  *
11  * The above copyright notice and this permission notice shall be included
12  * in all copies or substantial portions of the Software.
13  *
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17  * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
18  * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
19  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
20  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21  */
22 
23 #ifndef _deTransform_h
24 #define _deTransform_h
25 
33 {
34 public:
36  DE_MATH_API deMatrix3& rotation();
38  DE_MATH_API const deMatrix3& rotation() const;
40  DE_MATH_API deVector3& translation();
42  DE_MATH_API const deVector3& translation() const ;
44  DE_MATH_API void identity();
46  DE_MATH_API void operator=(const deTransform& t);
48  DE_MATH_API void multiply(const deTransform& t1, const deTransform& t2);
50  DE_MATH_API void inverse(const deTransform& t);
52  DE_MATH_API void inversedMultiply(const deTransform& t1, const deTransform& t2);
54  DE_MATH_API void multiplyInversed(const deTransform& t1, const deTransform& t2);
56  DE_MATH_API void set(const deFrame& f);
58  DE_MATH_API void set(const deMatrix3& m, const deVector3& v);
60  void set(const deFloat alpha, const deFloat a, const deFloat d, const deFloat theta);
62  void set(const deVector3& axis, const deFloat pitch, const deFloat angle);
63 
64 private:
65  deMatrix3 _m;
66  deVector3 _v;
67 };
68 
69 #endif // _deTransform_h
70 
3x1 vector classThis is a C++ wrapper class of deVector3f.
Definition: TaoDeVector3.h:32
DE_MATH_API void set(const deFrame &f)
this = f
Definition: TaoDeTransformInl.h:59
DE_MATH_API void operator=(const deTransform &t)
this = t
Definition: TaoDeTransformInl.h:32
DE_MATH_API void inversedMultiply(const deTransform &t1, const deTransform &t2)
this = ~[r1,p1][r2,p2] = [~r1, -(~r1*p1)][r2,p2] = [~r1*r2, ~r1*(p2-p1)]
Definition: TaoDeTransformInl.h:46
DE_MATH_API deMatrix3 & rotation()
Definition: TaoDeTransformInl.h:26
Transformation class using rotational matrixThis class consists of a matrix for rotation and a vector...
Definition: TaoDeTransform.h:32
DE_MATH_API void multiplyInversed(const deTransform &t1, const deTransform &t2)
this = [r1,p1]~[r2,p2] = [r1,p1][~r2, -(~r2*p2)] = [(r1*~r2), p1-(r1*~r2)*p2]
Definition: TaoDeTransformInl.h:53
Transformation class using quaternionThis class consists of a quaternion for rotation and a vector fo...
Definition: TaoDeFrame.h:36
DE_MATH_API void inverse(const deTransform &t)
this = ~[r,p] = [~r, -(~r*p)]
Definition: TaoDeTransformInl.h:40
DE_MATH_API void multiply(const deTransform &t1, const deTransform &t2)
this = [r1,p1][r2,p2] = [r1*r2, r1*p2 + p1]
Definition: TaoDeTransformInl.h:34
3x3 matrix classThis is a C++ wrapper class of deMatrix3f.
Definition: TaoDeMatrix3.h:33
DE_MATH_API deVector3 & translation()
Definition: TaoDeTransformInl.h:28
DE_MATH_API void identity()
this = identity matrix
Definition: TaoDeTransformInl.h:31