Go to the documentation of this file.
52 #pragma GCC system_header
104 #endif // __cplusplus
131 bool operator==(
const aiQuatKey &rhs)
const {
134 bool operator!=(
const aiQuatKey &rhs)
const {
139 bool operator<(
const aiQuatKey &rhs)
const {
142 bool operator>(
const aiQuatKey &rhs)
const {
168 aiMeshKey(
double time,
const unsigned int value) :
171 typedef unsigned int elem_type;
174 bool operator==(
const aiMeshKey &o)
const {
177 bool operator!=(
const aiMeshKey &o)
const {
182 bool operator<(
const aiMeshKey &o)
const {
185 bool operator>(
const aiMeshKey &o)
const {
332 #endif // __cplusplus
471 #endif // __cplusplus
487 template <
typename T>
488 struct Interpolator {
495 void operator()(T &anim_out,
const T &a,
const T &b, ai_real d)
const {
496 anim_out = a + (b - a) * d;
506 aiQuaternion::Interpolate(out, a, b, d);
511 struct Interpolator<unsigned int> {
512 void operator()(
unsigned int &out,
unsigned int a,
513 unsigned int b, ai_real d)
const {
514 out = d > 0.5f ? b : a;
522 Interpolator<aiVector3D> ipl;
531 Interpolator<aiQuaternion> ipl;
538 void operator()(
unsigned int &out,
const aiMeshKey &a,
540 Interpolator<unsigned int> ipl;
549 #endif // __cplusplus
551 #endif // AI_ANIM_H_INC
C_STRUCT aiVectorKey * mPositionKeys
Definition: anim.h:277
C_STRUCT aiQuaternion mValue
Definition: anim.h:115
C_STRUCT aiQuatKey * mRotationKeys
Definition: anim.h:288
C_STRUCT aiString mNodeName
Definition: anim.h:267
Definition: vector3.h:136
@ aiAnimBehaviour_REPEAT
Definition: anim.h:240
C_STRUCT aiMeshMorphKey * mKeys
Definition: anim.h:380
C_ENUM aiAnimBehaviour mPreState
Definition: anim.h:305
unsigned int mNumPositionKeys
Definition: anim.h:270
@ aiAnimBehaviour_DEFAULT
Definition: anim.h:227
unsigned int mNumMorphMeshChannels
Definition: anim.h:428
double mDuration
Definition: anim.h:405
Quaternion structure, including operators when compiling in C++.
unsigned int mNumRotationKeys
Definition: anim.h:280
double mTime
Definition: anim.h:152
@ aiAnimBehaviour_CONSTANT
Definition: anim.h:230
unsigned int mNumKeys
Definition: anim.h:349
C_STRUCT aiVectorKey * mScalingKeys
Definition: anim.h:298
C_STRUCT aiVector3D mValue
Definition: anim.h:69
Definition: quaternion.h:128
@ _aiAnimBehaviour_Force32Bit
Definition: anim.h:245
unsigned int mValue
Definition: anim.h:158
@ aiAnimBehaviour_LINEAR
Definition: anim.h:234
unsigned int mNumScalingKeys
Definition: anim.h:291
C_STRUCT aiMeshMorphAnim ** mMorphMeshChannels
Definition: anim.h:432
unsigned int mNumChannels
Definition: anim.h:412
C_STRUCT aiString mName
Definition: anim.h:346
unsigned int * mValues
Definition: anim.h:199
C_STRUCT aiNodeAnim ** mChannels
Definition: anim.h:416
C_STRUCT aiString mName
Definition: anim.h:374
aiAnimBehaviour
Definition: anim.h:225
C_ENUM aiAnimBehaviour mPostState
Definition: anim.h:312
C_STRUCT aiString mName
Definition: anim.h:402
unsigned int mNumValuesAndWeights
Definition: anim.h:203
unsigned int mNumKeys
Definition: anim.h:377
double mTime
Definition: anim.h:112
unsigned int mNumMeshChannels
Definition: anim.h:420
double mTime
Definition: anim.h:196
Definition: ai_assert.h:50
C_STRUCT aiMeshAnim ** mMeshChannels
Definition: anim.h:424
C_STRUCT aiMeshKey * mKeys
Definition: anim.h:352
double mTicksPerSecond
Definition: anim.h:408
double mTime
Definition: anim.h:66