31 #define M_PI 3.14159265358979323846
42 Ball(
double radius,
const double *pCoords, uint32_t dimension);
46 virtual Ball& operator=(
const Ball& b);
47 virtual bool operator==(
const Ball& b)
const;
53 Ball* clone()
override;
59 uint32_t getByteArraySize()
override;
60 void loadFromByteArray(
const uint8_t *data)
override;
61 void storeToByteArray(uint8_t **data, uint32_t &length)
override;
67 bool intersectsShape(
const IShape &in)
const override;
68 bool containsShape(
const IShape &in)
const override;
69 bool touchesShape(
const IShape &in)
const override;
71 uint32_t getDimension()
const override;
73 double getArea()
const override;
74 double getMinimumDistance(
const IShape &in)
const override;
81 return getMinimumDistance(*point) <= m_centerPoint.m_dimension;
bool containsPoint(const Point *point) const
bool containsBall(const Ball *ball) const
SIDX_DLL std::ostream & operator<<(std::ostream &os, const Ball &ball)