Simulant  21.06-50
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
Public Member Functions | Friends | List of all members
smlt::AABB Class Reference

Public Member Functions

void set_min (const Vec3 &min)
void set_min_x (float x)
void set_min_y (float y)
void set_min_z (float z)
void set_max_x (float x)
void set_max_y (float y)
void set_max_z (float z)
void set_max (const Vec3 &max)
const Vec3min () const
const Vec3max () const
 AABB (const Vec3 &min, const Vec3 &max)
 AABB (const Vec3 &centre, float width)
 AABB (const Vec3 &centre, float xsize, float ysize, float zsize)
 AABB (const Vec3 *vertices, const std::size_t count)
 AABB (const VertexData &vertex_data)
float width () const
float height () const
float depth () const
const Vec3 dimensions () const
float max_dimension () const
float min_dimension () const
bool intersects_aabb (const AABB &other) const
bool intersects_sphere (const smlt::Vec3 &center, float radius) const
Vec3 centre () const
bool has_zero_area () const
bool contains_point (const Vec3 &p) const
bool contains_points (const Vec3 *vertices, std::size_t count) const
bool contains_points (const std::vector< Vec3 > &points) const
const std::array< Vec3, 8 > & corners () const
void encapsulate (const AABB &other)
bool operator== (const AABB &rhs) const
bool operator!= (const AABB &rhs) const


std::ostream & operator<< (std::ostream &stream, const AABB &aabb)

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