// -------------------------------------------- void RotateHelper::createRotation ( ) { switch (rotation.order) { case MEulerRotation::kXYZ: createZ(0); createY(1); createX(2); break; case MEulerRotation::kXZY: createY(0); createZ(1); createX(2); break; case MEulerRotation::kYXZ: createZ(0); createX(1); createY(2); break; case MEulerRotation::kYZX: createX(0); createZ(1); createY(2); break; case MEulerRotation::kZXY: createY(0); createX(1); createZ(2); break; case MEulerRotation::kZYX: createX(0); createY(1); createZ(2); break; default: // Export XYZ euler rotation in Z Y X order in the file. // The rotation order is set to XYZ, Collada reads the parameter from behind. createZ(0); createY(1); createX(2); break; } }
int main (void) { { X x; std::cout << "X created\n"; x = createX(); } std::cout << "Now check out Y\n"; { Y y; std::cout << "Y created\n"; y = createY(); } }