All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes
fcl::AABB Class Reference

A class describing the AABB collision structure, which is a box in 3D space determined by two diagonal points. More...

#include <AABB.h>

List of all members.

Public Member Functions

 AABB ()
 Creating an AABB with zero size (low bound +inf, upper bound -inf)
 AABB (const Vec3f &v)
 Creating an AABB at position v with zero size.
 AABB (const Vec3f &a, const Vec3f &b)
 Creating an AABB with two endpoints a and b.
 AABB (const AABB &core, const Vec3f &delta)
 Creating an AABB centered as core and is of half-dimension delta.
 AABB (const Vec3f &a, const Vec3f &b, const Vec3f &c)
 Creating an AABB contains three points.
bool axisOverlap (const AABB &other, int axis_id) const
 Check whether two AABB are overlapped along specific axis.
Vec3f center () const
 Center of the AABB.
bool contain (const AABB &other) const
 Check whether the AABB contains another AABB.
bool contain (const Vec3f &p) const
 Check whether the AABB contains a point.
FCL_REAL depth () const
 Depth of the AABB.
FCL_REAL distance (const AABB &other, Vec3f *P, Vec3f *Q) const
 Distance between two AABBs; P and Q, should not be NULL, return the nearest points.
FCL_REAL distance (const AABB &other) const
 Distance between two AABBs.
bool equal (const AABB &other) const
 whether two AABB are equal
AABBexpand (const Vec3f &delta)
 expand the half size of the AABB by delta, and keep the center unchanged.
AABBexpand (const AABB &core, FCL_REAL ratio)
 expand the aabb by increase the thickness of the plate by a ratio
FCL_REAL height () const
 Height of the AABB.
AABB operator+ (const AABB &other) const
 Return the merged AABB of current AABB and the other one.
AABBoperator+= (const Vec3f &p)
 Merge the AABB and a point.
AABBoperator+= (const AABB &other)
 Merge the AABB and another AABB.
bool overlap (const AABB &other) const
 Check whether two AABB are overlap.
bool overlap (const AABB &other, AABB &overlap_part) const
 Check whether two AABB are overlap and return the overlap part.
FCL_REAL size () const
 Size of the AABB (used in BV_Splitter to order two AABBs)
FCL_REAL volume () const
 Volume of the AABB.
FCL_REAL width () const
 Width of the AABB.

Public Attributes

Vec3f max_
 The max point in the AABB.
Vec3f min_
 The min point in the AABB.

Detailed Description

A class describing the AABB collision structure, which is a box in 3D space determined by two diagonal points.

Definition at line 47 of file AABB.h.


Constructor & Destructor Documentation

Creating an AABB with zero size (low bound +inf, upper bound -inf)

Definition at line 45 of file AABB.cpp.

fcl::AABB::AABB ( const Vec3f v) [inline]

Creating an AABB at position v with zero size.

Definition at line 59 of file AABB.h.

fcl::AABB::AABB ( const Vec3f a,
const Vec3f b 
) [inline]

Creating an AABB with two endpoints a and b.

Definition at line 64 of file AABB.h.

fcl::AABB::AABB ( const AABB core,
const Vec3f delta 
) [inline]

Creating an AABB centered as core and is of half-dimension delta.

Definition at line 70 of file AABB.h.

fcl::AABB::AABB ( const Vec3f a,
const Vec3f b,
const Vec3f c 
) [inline]

Creating an AABB contains three points.

Definition at line 76 of file AABB.h.


Member Function Documentation

bool fcl::AABB::axisOverlap ( const AABB other,
int  axis_id 
) const [inline]

Check whether two AABB are overlapped along specific axis.

Definition at line 103 of file AABB.h.

Vec3f fcl::AABB::center ( ) const [inline]

Center of the AABB.

Definition at line 190 of file AABB.h.

bool fcl::AABB::contain ( const AABB other) const [inline]

Check whether the AABB contains another AABB.

Definition at line 96 of file AABB.h.

bool fcl::AABB::contain ( const Vec3f p) const [inline]

Check whether the AABB contains a point.

Definition at line 127 of file AABB.h.

FCL_REAL fcl::AABB::depth ( ) const [inline]

Depth of the AABB.

Definition at line 172 of file AABB.h.

FCL_REAL fcl::AABB::distance ( const AABB other,
Vec3f P,
Vec3f Q 
) const

Distance between two AABBs; P and Q, should not be NULL, return the nearest points.

Definition at line 50 of file AABB.cpp.

FCL_REAL fcl::AABB::distance ( const AABB other) const

Distance between two AABBs.

Definition at line 103 of file AABB.cpp.

bool fcl::AABB::equal ( const AABB other) const [inline]

whether two AABB are equal

Definition at line 202 of file AABB.h.

AABB& fcl::AABB::expand ( const Vec3f delta) [inline]

expand the half size of the AABB by delta, and keep the center unchanged.

Definition at line 208 of file AABB.h.

AABB& fcl::AABB::expand ( const AABB core,
FCL_REAL  ratio 
) [inline]

expand the aabb by increase the thickness of the plate by a ratio

Definition at line 216 of file AABB.h.

FCL_REAL fcl::AABB::height ( ) const [inline]

Height of the AABB.

Definition at line 166 of file AABB.h.

AABB fcl::AABB::operator+ ( const AABB other) const [inline]

Return the merged AABB of current AABB and the other one.

Definition at line 153 of file AABB.h.

AABB& fcl::AABB::operator+= ( const Vec3f p) [inline]

Merge the AABB and a point.

Definition at line 137 of file AABB.h.

AABB& fcl::AABB::operator+= ( const AABB other) [inline]

Merge the AABB and another AABB.

Definition at line 145 of file AABB.h.

bool fcl::AABB::overlap ( const AABB other) const [inline]

Check whether two AABB are overlap.

Definition at line 82 of file AABB.h.

bool fcl::AABB::overlap ( const AABB other,
AABB overlap_part 
) const [inline]

Check whether two AABB are overlap and return the overlap part.

Definition at line 113 of file AABB.h.

FCL_REAL fcl::AABB::size ( ) const [inline]

Size of the AABB (used in BV_Splitter to order two AABBs)

Definition at line 184 of file AABB.h.

FCL_REAL fcl::AABB::volume ( ) const [inline]

Volume of the AABB.

Definition at line 178 of file AABB.h.

FCL_REAL fcl::AABB::width ( ) const [inline]

Width of the AABB.

Definition at line 160 of file AABB.h.


Member Data Documentation

The max point in the AABB.

Definition at line 53 of file AABB.h.

The min point in the AABB.

Definition at line 51 of file AABB.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


fcl
Author(s): Jia Pan
autogenerated on Tue Jan 15 2013 16:05:31