00001 00027 #ifndef _CROTATIONABLE2D_H_ 00028 #define _CROTATIONABLE2D_H_ 00029 00030 #include "Rotationable.h" 00031 00032 class CRotationable2D : public CRotationable<Rotation2D>{ 00033 public: 00034 CRotationable2D(); 00035 virtual ~CRotationable2D(); 00036 00042 void setRotation( float rotX, float rotY){ m_rotation . rotX = rotX; m_rotation . rotY = rotY; }; 00043 00048 bool isRotated(){ return m_rotation.rotX == 0 && m_rotation.rotY == 0 ? false : true; }; 00049 00050 }; 00051 00052 #endif /* _CROTATIONABLE2D_H_ */