home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1997 March
/
VPR9703A.ISO
/
VPR_DATA
/
DOGA
/
SOURCES
/
MEDIT.LZH
/
POSE.H
< prev
next >
Wrap
C/C++ Source or Header
|
1995-08-01
|
707b
|
43 lines
#ifndef _POSE_
#define _POSE_
class Vector;
class Matrix;
class Bezier;
class Motion;
enum DirType {
DirInit, // 向きの初期化
DirNone, // 無指定
DirForward, // 進行方向
DirTarget, //
DirLinear // 直線補間
};
enum ScaleType {
ScaleInit,
ScaleNone,
ScaleLinear
};
class Pose {
public:
Vector position;
Vector rotation;
Vector scale;
double posrate;
DirType dirtype;
ScaleType scaletype;
int rotationcount;
Motion *target;
Pose();
~Pose();
void SetRotation(Matrix &m) {rotation=m.GetRotation();}
Matrix GetRotation(void) {return Matrix(1)
.rotz(rotation.z)
.roty(rotation.y)
.rotx(rotation.x);}
};
#endif