prime/include/Kyoto/Math/CSphere.hpp
Phillip Stephens 96236df954 Match and link CSphere
Former-commit-id: 68616cba51cf1ff787210674706106f65b367b25
2022-10-05 16:45:56 -07:00

22 lines
391 B
C++

#ifndef _CSPHERE_HPP
#define _CSPHERE_HPP
#include "types.h"
#include "Kyoto/Math/CVector3f.hpp"
#include "Kyoto/Math/CUnitVector3f.hpp"
class CSphere {
public:
CSphere(const CVector3f& pos, f32 radius) : x0_pos(pos), xc_radius(radius) {}
CUnitVector3f GetSurfaceNormal(const CVector3f& v) const;
private:
CVector3f x0_pos;
f32 xc_radius;
};
CHECK_SIZEOF(CSphere, 0x10)
#endif