rockingTransform/rockingTransform.h
#include <maya/MMatrix.h>
#include <maya/MPxTransform.h>
#include <maya/MPxTransformationMatrix.h>
#define kRockingTransformNodeID 0x81109
#define kRockingTransformMatrixID 0x8110A
#define ReturnOnError(status) \
if (MS::kSuccess != status) { \
return status; \
}
{
public:
rockingTransformMatrix();
double getRockInX() const;
void setRockInX( double rock );
protected:
double rockXValue;
};
{
public:
rockingTransformNode();
~rockingTransformNode() override;
rockingTransformMatrix *getRockingTransformMatrix();
static void * creator();
protected:
double rockXValue;
};
class DegreeRadianConverter
{
public:
double degreesToRadians( double degrees );
double radiansToDegrees( double radians );
};