refactor Collada: Add new class Quat (wip)

This commit is contained in:
Gaia Clary 2019-05-28 08:45:28 +02:00
parent 692edf4301
commit e17990bab7
2 changed files with 34 additions and 3 deletions

View File

@ -14,15 +14,45 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
/** \file
* \ingroup collada
*/
/** \file
* \ingroup collada
*/
#ifndef __BCMATRIX_H__
#define __BCMATRIX_H__
#include "BlenderTypes.h"
#include "BKE_object.h"
#include "BLI_math.h"
class BCQuat {
private:
mutable Quat q;
void unit();
void copy(Quat &r, Quat &a);
public:
BCQuat(const BCQuat &other)
{
copy_v4_v4(q, other.q);
}
BCQuat(Quat &other)
{
copy_v4_v4(q, other);
}
BCQuat()
{
unit_qt(q);
}
Quat &quat()
{
return q;
}
};
class BCMatrix {

View File

@ -22,6 +22,7 @@
#define __BLENDERTYPES_H__
typedef float(Vector)[3];
typedef float(Quat)[4];
typedef float(Matrix)[4][4];
typedef double(DMatrix)[4][4];