mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-11 02:27:41 +00:00
@@ -8,12 +8,14 @@
|
||||
|
||||
class CSphere {
|
||||
public:
|
||||
CSphere(const CVector3f& pos, float radius) : x0_pos(pos), xc_radius(radius) {}
|
||||
CSphere(const CVector3f& pos, float radius) : x0_center(pos), xc_radius(radius) {}
|
||||
|
||||
CVector3f GetCenter() const { return x0_center; }
|
||||
float GetRadius() const { return xc_radius; }
|
||||
CUnitVector3f GetSurfaceNormal(const CVector3f& v) const;
|
||||
|
||||
private:
|
||||
CVector3f x0_pos;
|
||||
CVector3f x0_center;
|
||||
float xc_radius;
|
||||
};
|
||||
CHECK_SIZEOF(CSphere, 0x10)
|
||||
|
||||
Reference in New Issue
Block a user