VkCV Framework  0.0.1
CV Vulkan framework
vkcv::scene::Bounds Class Reference

Public Member Functions

 Bounds (const glm::vec3 &min, const glm::vec3 &max)
 
 Bounds (const Bounds &other)=default
 
 Bounds (Bounds &&other)=default
 
Boundsoperator= (const Bounds &other)=default
 
Boundsoperator= (Bounds &&other)=default
 
void setMin (const glm::vec3 &min)
 
const glm::vec3 & getMin () const
 
void setMax (const glm::vec3 &max)
 
const glm::vec3 & getMax () const
 
void setCenter (const glm::vec3 &center)
 
glm::vec3 getCenter () const
 
void setSize (const glm::vec3 &size)
 
glm::vec3 getSize () const
 
std::array< glm::vec3, 8 > getCorners () const
 
void extend (const glm::vec3 &point)
 
bool contains (const glm::vec3 &point) const
 
bool contains (const Bounds &other) const
 
bool intersects (const Bounds &other) const
 
 operator bool () const
 
bool operator! () const
 

Private Attributes

glm::vec3 m_min
 
glm::vec3 m_max
 

Detailed Description


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