The Vish Visualization Shell 0.3
Vish
Public Member Functions | Static Public Member Functions | List of all members
Eagle::PhysicalSpace::AABB Struct Reference

Simplistic class for Axis-Aligned Bounding Box. More...

#include <elementary/eagle/PhysicalSpace/AABB.hpp>

Inheritance diagram for Eagle::PhysicalSpace::AABB:
Eagle::BoundingBox

Public Member Functions

tvector diagonal () const
 Compute the diagonal vector, max - min.
 
point findClosestPoint (const point &P) const
 Find the point on the box that is closest to the given point.
 
point getLocation (double x, double y, double z) const
 Compute a point relative to the given bounding box, the coordinates are in values 0.0 to 1.0 for points within the box.
 
bool isInside (const AABB &bb) const
 Check whether another bounding box resides within the bounding box.
 
bool isInside (const point &p) const
 Check whether a specific point resides within the bounding box.
 
pointmax ()
 The maximal coordinate, upper right back corner (by convention, second element)
 
const pointmax () const
 The maximal coordinate, upper right back corner (by convention, second element)
 
pointmin ()
 The minimal coordinate, lower left front corner (by convention, first element)
 
const pointmin () const
 The minimal coordinate, lower left front corner (by convention, first element)
 
void resort ()
 Ensure min() < max() for all components by checking and resorting.
 

Static Public Member Functions

static point getBoundingBoxVertex (point vertex, const point &max_values, const bivector &normal)
 Get BoundingBox vertex that is further along normal’s direction of the plane.
 

Detailed Description

Simplistic class for Axis-Aligned Bounding Box.

By convention the first element is the minimum, the second element the maximum.