gramods
Public Types | Public Member Functions | List of all members
gramods::gmGraphics::AABB Class Reference

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)
 
AABBoperator+= (const Eigen::Vector3f &op)
 
AABBoperator+= (const AABB &op)
 
const Eigen::Vector3f & min () const
 
const Eigen::Vector3f & max () const
 
Eigen::Vector3f getCenter ()
 
AABBaddOffset (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...
 

Detailed Description

Axis aligned bounding box values with operations.

Member Typedef Documentation

◆ Line

Line for intersection checking.

Member Function Documentation

◆ getIntersections()

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.

◆ isIntersecting()

bool gramods::gmGraphics::AABB::isIntersecting ( const Line line)

Check if the specified line has an intersection with the AABB.


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