2022-04-16 07:50:32 +00:00
|
|
|
#ifndef __CVECTOR3F_HPP__
|
|
|
|
#define __CVECTOR3F_HPP__
|
|
|
|
|
2022-07-02 05:30:04 +00:00
|
|
|
#include "types.h"
|
2022-04-16 07:50:32 +00:00
|
|
|
|
|
|
|
class CVector3f {
|
|
|
|
public:
|
2022-08-13 01:26:00 +00:00
|
|
|
CVector3f() : mX(0.f), mY(0.f), mZ(0.f) {}
|
2022-07-02 05:30:04 +00:00
|
|
|
explicit CVector3f(f32 x, f32 y, f32 z) : mX(x), mY(y), mZ(z) {}
|
|
|
|
|
|
|
|
f32 GetX() const { return mX; }
|
|
|
|
f32 GetY() const { return mY; }
|
|
|
|
f32 GetZ() const { return mZ; }
|
|
|
|
|
|
|
|
// private:
|
|
|
|
f32 mX;
|
|
|
|
f32 mY;
|
|
|
|
f32 mZ;
|
2022-04-16 07:50:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __CVECTOR3F_HPP__
|