mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-12-25 17:21:49 +01:00
21 lines
498 B
C
21 lines
498 B
C
|
#pragma once
|
||
|
|
||
|
#include "SurfaceTable.h"
|
||
|
|
||
|
struct CSphere
|
||
|
{
|
||
|
// NB: this has to be compatible with a CVuVector
|
||
|
CVector center;
|
||
|
float radius;
|
||
|
void Set(float radius, const CVector ¢er) { this->center = center; this->radius = radius; }
|
||
|
};
|
||
|
|
||
|
struct CColSphere : public CSphere
|
||
|
{
|
||
|
uint8 surface;
|
||
|
uint8 piece;
|
||
|
|
||
|
void Set(float radius, const CVector ¢er, uint8 surf, uint8 piece);
|
||
|
bool IntersectRay(CVector const &from, CVector const &dir, CVector &entry, CVector &exit);
|
||
|
using CSphere::Set;
|
||
|
};
|