2022-09-18 05:55:13 +00:00
|
|
|
#ifndef _CAXISANGLE_HPP
|
|
|
|
#define _CAXISANGLE_HPP
|
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
2022-10-05 16:28:37 +00:00
|
|
|
#include <math.h>
|
2022-09-18 05:55:13 +00:00
|
|
|
#include "Kyoto/Math/CVector3f.hpp"
|
|
|
|
|
2022-10-05 16:28:37 +00:00
|
|
|
class CAxisAngle : protected CVector3f {
|
2022-09-18 05:55:13 +00:00
|
|
|
public:
|
2022-10-03 11:55:03 +00:00
|
|
|
CAxisAngle(f32 x, f32 y, f32 z) : CVector3f(x, y, z) {}
|
2022-10-05 16:28:37 +00:00
|
|
|
//CAxisAngle(const CAxisAngle& other) : CVector3f(other) {}
|
2022-09-18 05:55:13 +00:00
|
|
|
|
|
|
|
static const CAxisAngle& Identity();
|
2022-10-03 11:55:03 +00:00
|
|
|
|
|
|
|
const CVector3f& GetVector() const;
|
2022-10-05 16:28:37 +00:00
|
|
|
/*
|
|
|
|
CAxisAngle& operator=(const CAxisAngle& other) {
|
|
|
|
int otherX = __HI(other.mX);
|
|
|
|
__HI(mX) = otherX;
|
|
|
|
int otherY = __HI(other.mY);
|
|
|
|
__HI(mY) = otherY;
|
|
|
|
int otherZ = __HI(other.mZ);
|
|
|
|
__HI(mZ) = otherZ;
|
|
|
|
return *this;
|
|
|
|
}
|
|
|
|
*/
|
2022-09-18 05:55:13 +00:00
|
|
|
};
|
2022-10-05 16:28:37 +00:00
|
|
|
|
|
|
|
CAxisAngle operator+(const CAxisAngle& lhs, const CAxisAngle& rhs);
|
2022-09-18 05:55:13 +00:00
|
|
|
CHECK_SIZEOF(CAxisAngle, 0xc)
|
|
|
|
|
2022-09-18 06:05:46 +00:00
|
|
|
#endif
|