chrono::ChAABB Struct Reference

Description

Axis-aligned bounding box.

#include <ChAABB.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.
 
 ChAABB (const ChIntAABB &aabb, double spacing)
 Construct an AABB from the given integer AABB and grid spacing.
 
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 in this AABB.
 
ChAABBoperator+= (const ChVector3d p)
 Include the specified point in this AABB.
 
ChAABB Inflate (const ChVector3d &v) const
 Inflate this AABB by the given vector.
 
ChAABB Transform (const ChFramed &frame) const
 Transform by the given frame.
 
void ArchiveOut (ChArchiveOut &archive_out)
 Method to allow serialization of transient data to archives.
 
void ArchiveIn (ChArchiveIn &archive_in)
 Method to allow de serialization of transient data from archives.
 

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/ChAABB.h
  • /builds/uwsbel/chrono/src/chrono/geometry/ChAABB.cpp