Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
Sphere Class Reference
Inheritance diagram for Sphere:
[legend]
Collaboration diagram for Sphere:
[legend]

Public Member Functions

 Sphere (const glm::vec3 &position, float radius)
 
float radius () const
 
void setRadius (float radius)
 
const glm::vec3 & position () const
 
void setPosition (const glm::vec3 &position)
 
bool contains (const Sphere &other) const
 
virtual bool intersects (const Sphere &other) const override
 
virtual bool nearTo (const TAABB< int > &aabb) const override
 
virtual bool containedBy (const TAABB< int > &aabb) const override
 

Static Public Member Functions

template<typename T >
static Sphere containing (const TAABB< T > &aabb)
 

Protected Attributes

glm::vec3 m_position
 
float m_radius
 

The documentation for this class was generated from the following files: