Description

Axis-aligned bounding box.

#include <ChGeometry.h>

Collaboration diagram for chrono::ChAABB:

Public Member Functions

 ChAABB ()
 Default is an inverted bounding box.
 
 ChAABB (const ChVector3d &aabb_min, const ChVector3d &aabb_max)
 Construct an AABB with provided corners.
 
ChVector3d Center () const
 Get AABB center.
 
ChVector3d Size () const
 Get AABB dimensions.
 
bool IsInverted () const
 Return true for an inverted bounding box.
 
ChAABB operator+ (const ChAABB &aabb)
 Return the union of this AABB and the specified AABB.
 
ChAABBoperator+= (const ChAABB &aabb)
 Include the specified AABB to this AABB.
 
ChAABB Transform (const ChFrame<> &frame) const
 Transform by the given frame.
 

Public Attributes

ChVector3d min
 low AABB corner
 
ChVector3d max
 high AABB corner
 

The documentation for this struct was generated from the following files:
  • /builds/uwsbel/chrono/src/chrono/geometry/ChGeometry.h
  • /builds/uwsbel/chrono/src/chrono/geometry/ChGeometry.cpp