2
Copyright (c) 2008-2009 NetAllied Systems GmbH
4
This file is part of COLLADAMaya.
6
Portions of the code are:
7
Copyright (c) 2005-2007 Feeling Software Inc.
8
Copyright (c) 2005-2007 Sony Computer Entertainment America
9
Copyright (c) 2004-2005 Alias Systems Corp.
11
Licensed under the MIT Open Source License,
12
for details please see LICENSE file or the website
13
http://www.opensource.org/licenses/mit-license.php
16
#ifndef __COLLADA_MAYA_ROTATE_HELPER_H__
17
#define __COLLADA_MAYA_ROTATE_HELPER_H__
19
#include "COLLADAMayaPrerequisites.h"
26
* Generates the rotation matrix, depending on the rotation order.
33
/** The euler rotation with the rotation order to set. */
34
MEulerRotation rotation;
36
/** The rotation matrix to generate, depending on the rotation order. */
37
std::vector< std::vector<double> > rotationMatrix;
39
/** The vector with the rotation parameters in the rotation order. */
40
std::vector<String> rotationParameters;
46
* @param rotation The euler rotation.
48
RotateHelper( MEulerRotation rotation );
51
* Returns the rotation vector (2x3 matrix).
52
* @return std::vector< std::vector<double> >&
54
std::vector < std::vector<double> >& getRotationMatrix ()
56
return rotationMatrix;
60
* Returns the rotation parameters in the rotation order.
61
* @return std::vector<String>&
63
std::vector<String>& getRotationParameters ()
65
return rotationParameters;
71
* Creates the rotation.
73
void createRotation ( );
75
void createX ( uint pos );
77
void createY ( uint pos );
79
void createZ ( uint pos );
84
#endif /* __COLLADA_MAYA_ROTATE_HELPER_H__ */