データ型
基本型 (The basic data types)
| 型 |
説明 |
| dReal |
実数 |
| dVector3 |
ベクトル |
| dVector4 |
| dMatrix3 |
行列 |
| dMatrix4 |
| dMatrix6 |
| dQuaternion |
クォータニオン |
ヘッダファイルでの定義
#if defined(dSINGLE)
typedef float dReal;
#ifdef dDOUBLE
#error You can only #define dSINGLE or dDOUBLE, not both.
#endif
#elif defined(dDOUBLE)
typedef double dReal;
#else
#error You must #define dSINGLE or dDOUBLE
#endif
typedef dReal dVector3[4];
typedef dReal dVector4[4];
typedef dReal dMatrix3[4*3];
typedef dReal dMatrix4[4*4];
typedef dReal dMatrix6[8*6];
typedef dReal dQuaternion[4];