mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-06-07 07:53:28 +00:00
Retro seemingly avoided using the Dolphin typedefs in most places, opting to use int/uint instead. This likely means they didn't use u8/s8/u16/s16/etc either. Former-commit-id: 133326ae406a0ebc76f56f8bcb489fda280be2be
22 lines
399 B
C++
22 lines
399 B
C++
#ifndef _CSPHERE
|
|
#define _CSPHERE
|
|
|
|
#include "types.h"
|
|
|
|
#include "Kyoto/Math/CUnitVector3f.hpp"
|
|
#include "Kyoto/Math/CVector3f.hpp"
|
|
|
|
class CSphere {
|
|
public:
|
|
CSphere(const CVector3f& pos, float radius) : x0_pos(pos), xc_radius(radius) {}
|
|
|
|
CUnitVector3f GetSurfaceNormal(const CVector3f& v) const;
|
|
|
|
private:
|
|
CVector3f x0_pos;
|
|
float xc_radius;
|
|
};
|
|
CHECK_SIZEOF(CSphere, 0x10)
|
|
|
|
#endif // _CSPHERE
|