~ubuntu-branches/ubuntu/maverick/blender/maverick

« back to all changes in this revision

Viewing changes to extern/bullet2/src/LinearMath/btTransform.h

  • Committer: Bazaar Package Importer
  • Author(s): Khashayar Naderehvandi, Khashayar Naderehvandi, Alessio Treglia
  • Date: 2009-01-22 16:53:59 UTC
  • mfrom: (14.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20090122165359-v0996tn7fbit64ni
Tags: 2.48a+dfsg-1ubuntu1
[ Khashayar Naderehvandi ]
* Merge from debian experimental (LP: #320045), Ubuntu remaining changes:
  - Add patch correcting header file locations.
  - Add libvorbis-dev and libgsm1-dev to Build-Depends.
  - Use avcodec_decode_audio2() in source/blender/src/hddaudio.c

[ Alessio Treglia ]
* Add missing previous changelog entries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#include "btMatrix3x3.h"
22
22
 
23
23
 
24
 
///btTransform supports rigid transforms (only translation and rotation, no scaling/shear)
 
24
///The btTransform class supports rigid transforms with only translation and rotation and no scaling/shear.
 
25
///It can be used in combination with btVector3, btQuaternion and btMatrix3x3 linear algebra classes.
25
26
class btTransform {
26
27
        
27
28
 
92
93
                m_basis.getRotation(q);
93
94
                return q;
94
95
        }
95
 
        template <typename Scalar2>
96
 
                void setValue(const Scalar2 *m) 
97
 
        {
98
 
                m_basis.setValue(m);
99
 
                m_origin.setValue(&m[12]);
100
 
        }
101
 
 
 
96
        
102
97
        
103
98
        void setFromOpenGLMatrix(const btScalar *m)
104
99
        {
194
189
{
195
190
        return btTransform(m_basis * t.m_basis, 
196
191
                (*this)(t.m_origin));
197
 
}       
 
192
}
198
193
 
 
194
SIMD_FORCE_INLINE bool operator==(const btTransform& t1, const btTransform& t2)
 
195
{
 
196
   return ( t1.getBasis()  == t2.getBasis() &&
 
197
            t1.getOrigin() == t2.getOrigin() );
 
198
}
199
199
 
200
200
 
201
201
#endif
204
204
 
205
205
 
206
206
 
 
207