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 17:24:06 +00:00
|
|
|
class CAxisAngle {
|
2022-09-18 05:55:13 +00:00
|
|
|
public:
|
2022-10-05 17:24:06 +00:00
|
|
|
CAxisAngle(f32 x, f32 y, f32 z) : mVector(x, y, z) {}
|
|
|
|
explicit CAxisAngle(const CVector3f& vec);
|
|
|
|
static const CAxisAngle& Identity();
|
2022-10-03 11:55:03 +00:00
|
|
|
const CVector3f& GetVector() const;
|
2022-10-05 22:50:12 +00:00
|
|
|
|
|
|
|
const CAxisAngle& operator+=(const CAxisAngle& rhs);
|
2022-10-05 17:24:06 +00:00
|
|
|
private:
|
|
|
|
CVector3f mVector;
|
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
|