VoxelEngine
 
Loading...
Searching...
No Matches
engine::AABB Struct Reference

Public Member Functions

bool contains (const glm::vec3 &point) const
 
bool intersects (const AABB &other) const
 
bool intersects (const Plane &plane) const
 
bool isOutsidePlane (const Plane &plane) const
 
glm::vec3 center () const
 
void transform (const glm::mat4 &matrix)
 
void move (const glm::vec3 &offset)
 
void moveAxis (int axis, float amount)
 
void position (const glm::vec3 &pos)
 
void expand (float amount)
 

Static Public Member Functions

static AABB fromGeometry (const Geometry &geo)
 
static AABB fromPoints (const std::vector< glm::vec3 > &points)
 

Public Attributes

glm::vec3 min
 
glm::vec3 max
 

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