Rasterfarm-SDK
Loading...
Searching...
No Matches
AABoundingBox Class Reference

#include <aaboundingbox.h>

Inheritance diagram for AABoundingBox:

Public Types

typedef unsigned char Octant
 

Public Member Functions

 AABoundingBox ()
 
 AABoundingBox (const Initializer< float > &list)
 
 AABoundingBox (Pair< float, float > x, Pair< float, float > y)
 
 AABoundingBox (const Primitive2D::Circle &sphere)
 
 AABoundingBox (const Vector2fArray &vertex)
 
AABoundingBoxoperator= (const Vector2fArray &vertex)
 
const bool operator== (const AABoundingBox &other) const
 
const bool operator!= (const AABoundingBox &other) const
 
void operator+= (const AABoundingBox &other)
 
void operator+= (const Vector2fArray &vertex)
 
void operator+= (const Vector2f &vertex)
 
void reset ()
 
Vector2fArray getVertices () const
 
Primitive2D::SegmentArray getSegments () const
 
Vector2f center () const
 
Vector2f sideLength () const
 
float area () const
 
float shortestSide () const
 
float longestSide () const
 
void setBounds (const Vertex2f &vertex)
 
void setBounds (const Vertex2fArray &vertex)
 
void setBounds (const Vector2fInitializer &list)
 
bool isEmpty () const
 
 AABoundingBox ()
 
 AABoundingBox (const Primitive2D::AABoundingBox &other)
 
 AABoundingBox (Pair< float, float > x, Pair< float, float > y, Pair< float, float > z)
 
 AABoundingBox (const Initializer< float > &list)
 
 AABoundingBox (const Vector3fArray &vertex)
 
AABoundingBoxoperator= (const Vector3fArray &vertex)
 
const bool operator== (const AABoundingBox &other) const
 
const bool operator!= (const AABoundingBox &other) const
 
void operator+= (const AABoundingBox &other)
 
void operator+= (const Vector3fArray &vertex)
 
void operator+= (const Vertex3f &vertex)
 
void reset ()
 
Vertex3fArray getVertices () const
 
Primitive3D::SegmentArray getSegments () const
 
Vertex3f center () const
 
Vector3f sideLength () const
 
float volume () const
 
bool isEmpty () const
 
float shortestSide () const
 
float longestSide () const
 
void setBounds (const Vertex3f &vertex)
 
void setBounds (const Vertex3fArray &vertex)
 
void setBounds (const Vector3fInitializer &list)
 
AABoundingBox getOctant (Octant octant) const
 

Public Attributes

float x [2]
 
float y [2]
 
float z [2]
 

Member Typedef Documentation

◆ Octant

typedef unsigned char AABoundingBox::Octant

Constructor & Destructor Documentation

◆ AABoundingBox() [1/10]

AABoundingBox::AABoundingBox ( )

◆ AABoundingBox() [2/10]

AABoundingBox::AABoundingBox ( const Initializer< float > & list)

◆ AABoundingBox() [3/10]

AABoundingBox::AABoundingBox ( Pair< float, float > x,
Pair< float, float > y )

◆ AABoundingBox() [4/10]

AABoundingBox::AABoundingBox ( const Primitive2D::Circle & sphere)

◆ AABoundingBox() [5/10]

AABoundingBox::AABoundingBox ( const Vector2fArray & vertex)

◆ AABoundingBox() [6/10]

AABoundingBox::AABoundingBox ( )

◆ AABoundingBox() [7/10]

AABoundingBox::AABoundingBox ( const Primitive2D::AABoundingBox & other)
inline

◆ AABoundingBox() [8/10]

AABoundingBox::AABoundingBox ( Pair< float, float > x,
Pair< float, float > y,
Pair< float, float > z )

◆ AABoundingBox() [9/10]

AABoundingBox::AABoundingBox ( const Initializer< float > & list)

◆ AABoundingBox() [10/10]

AABoundingBox::AABoundingBox ( const Vector3fArray & vertex)

Member Function Documentation

◆ area()

float AABoundingBox::area ( ) const

◆ center() [1/2]

Vector2f AABoundingBox::center ( ) const

◆ center() [2/2]

Vertex3f AABoundingBox::center ( ) const

◆ getOctant()

AABoundingBox AABoundingBox::getOctant ( Octant octant) const
Returns
The AABoundingBox for the given octant.

◆ getSegments() [1/2]

Primitive2D::SegmentArray AABoundingBox::getSegments ( ) const

◆ getSegments() [2/2]

Primitive3D::SegmentArray AABoundingBox::getSegments ( ) const

◆ getVertices() [1/2]

Vector2fArray AABoundingBox::getVertices ( ) const

◆ getVertices() [2/2]

Vertex3fArray AABoundingBox::getVertices ( ) const

◆ isEmpty() [1/2]

bool AABoundingBox::isEmpty ( ) const

◆ isEmpty() [2/2]

bool AABoundingBox::isEmpty ( ) const

◆ longestSide() [1/2]

float AABoundingBox::longestSide ( ) const

◆ longestSide() [2/2]

float AABoundingBox::longestSide ( ) const

◆ operator!=() [1/2]

const bool AABoundingBox::operator!= ( const AABoundingBox & other) const
inline

◆ operator!=() [2/2]

const bool AABoundingBox::operator!= ( const AABoundingBox & other) const
inline

◆ operator+=() [1/6]

void AABoundingBox::operator+= ( const AABoundingBox & other)

◆ operator+=() [2/6]

void AABoundingBox::operator+= ( const AABoundingBox & other)

◆ operator+=() [3/6]

void AABoundingBox::operator+= ( const Vector2f & vertex)

◆ operator+=() [4/6]

void AABoundingBox::operator+= ( const Vector2fArray & vertex)

◆ operator+=() [5/6]

void AABoundingBox::operator+= ( const Vector3fArray & vertex)

◆ operator+=() [6/6]

void AABoundingBox::operator+= ( const Vertex3f & vertex)

◆ operator=() [1/2]

AABoundingBox & AABoundingBox::operator= ( const Vector2fArray & vertex)
inline

◆ operator=() [2/2]

AABoundingBox & AABoundingBox::operator= ( const Vector3fArray & vertex)
inline

◆ operator==() [1/2]

const bool AABoundingBox::operator== ( const AABoundingBox & other) const

◆ operator==() [2/2]

const bool AABoundingBox::operator== ( const AABoundingBox & other) const

◆ reset() [1/2]

void AABoundingBox::reset ( )

◆ reset() [2/2]

void AABoundingBox::reset ( )

◆ setBounds() [1/6]

void AABoundingBox::setBounds ( const Vector2fInitializer & list)

◆ setBounds() [2/6]

void AABoundingBox::setBounds ( const Vector3fInitializer & list)

◆ setBounds() [3/6]

void AABoundingBox::setBounds ( const Vertex2f & vertex)

◆ setBounds() [4/6]

void AABoundingBox::setBounds ( const Vertex2fArray & vertex)

◆ setBounds() [5/6]

void AABoundingBox::setBounds ( const Vertex3f & vertex)

◆ setBounds() [6/6]

void AABoundingBox::setBounds ( const Vertex3fArray & vertex)

◆ shortestSide() [1/2]

float AABoundingBox::shortestSide ( ) const

◆ shortestSide() [2/2]

float AABoundingBox::shortestSide ( ) const

◆ sideLength() [1/2]

Vector2f AABoundingBox::sideLength ( ) const

◆ sideLength() [2/2]

Vector3f AABoundingBox::sideLength ( ) const

◆ volume()

float AABoundingBox::volume ( ) const

Member Data Documentation

◆ x

float AABoundingBox::x[2]

◆ y

float AABoundingBox::y[2]

◆ z

float AABoundingBox::z[2]

holds min/max values


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