gramods
|
Axis aligned bounding box values with operations. More...
#include <AABB.hh>
Public Types | |
typedef IntersectionLine | Line |
Line for intersection checking. More... | |
Public Member Functions | |
AABB (const AABB &bb) | |
AABB (const Eigen::Vector3f &p) | |
AABB (const AABB &bb, const Eigen::Vector3f &p) | |
AABB (const AABB &op1, const AABB &op2) | |
AABB | operator+ (const Eigen::Vector3f &op) |
AABB | operator+ (const AABB &op) |
AABB & | operator+= (const Eigen::Vector3f &op) |
AABB & | operator+= (const AABB &op) |
const Eigen::Vector3f & | min () const |
const Eigen::Vector3f & | max () const |
Eigen::Vector3f | getCenter () |
AABB & | addOffset (const Eigen::Vector3f &op) |
std::vector< Eigen::Vector3f > | getCorners () const |
bool | isIntersecting (const Line &line) |
Check if the specified line has an intersection with the AABB. More... | |
std::vector< float > | getIntersections (const Line &line) |
Retrieves the intersections for the specified line as ratio on the provided line. More... | |
Axis aligned bounding box values with operations.
Line for intersection checking.
std::vector< float > gramods::gmGraphics::AABB::getIntersections | ( | const Line & | line | ) |
Retrieves the intersections for the specified line as ratio on the provided line.
Use Line::getPosition to convert ratio into position.
bool gramods::gmGraphics::AABB::isIntersecting | ( | const Line & | line | ) |
Check if the specified line has an intersection with the AABB.