mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-10 08:27:41 +00:00
33
include/Kyoto/Math/CVector3d.hpp
Normal file
33
include/Kyoto/Math/CVector3d.hpp
Normal file
@@ -0,0 +1,33 @@
|
||||
#ifndef __CVECTOR3D_HPP__
|
||||
#define __CVECTOR3D_HPP__
|
||||
|
||||
|
||||
#include "Kyoto/Math/CVector3f.hpp"
|
||||
|
||||
class CVector3d {
|
||||
public:
|
||||
CVector3d(double x, double y, double z);
|
||||
CVector3d(const CVector3f& other);
|
||||
double Magnitude() const;
|
||||
double MagSquared() const;
|
||||
|
||||
CVector3d AsNormalized() const;
|
||||
CVector3f AsCVector3f() const;
|
||||
|
||||
double GetX() const { return mX; }
|
||||
double GetY() const { return mY; }
|
||||
double GetZ() const { return mZ; }
|
||||
|
||||
static double Dot(const CVector3d& a, const CVector3d& b);
|
||||
static CVector3d Cross(const CVector3d& a, const CVector3d& b);
|
||||
|
||||
|
||||
private:
|
||||
double mX;
|
||||
double mY;
|
||||
double mZ;
|
||||
};
|
||||
|
||||
CVector3d operator+(const CVector3d& other);
|
||||
|
||||
#endif // __CVECTOR3D_HPP__
|
||||
Reference in New Issue
Block a user