Simox  2.3.74.0
simox::aabb Namespace Reference

Functions

template<class PointT >
AxisAlignedBoundingBox from_points (const std::vector< PointT > &points)
 
AxisAlignedBoundingBox from_points (const std::vector< Eigen::Vector3f > &points)
 
float central_distance (const AxisAlignedBoundingBox &lhs, const AxisAlignedBoundingBox &rhs)
 Return the distance between center of lhs's and rhs's centers. More...
 
float central_squared_distance (const AxisAlignedBoundingBox &lhs, const AxisAlignedBoundingBox &rhs)
 Return the squared distance between lhs's center and rhs's centers. More...
 
bool is_colliding (const AxisAlignedBoundingBox &lhs, const AxisAlignedBoundingBox &rhs)
 Checks whether lhs is colliding (i.e. overlapping) with rhs. More...
 
bool is_inside (const AxisAlignedBoundingBox &aabb, const Eigen::Vector3f &point)
 Indicates whether point is inside aabb. More...
 
template<class PointT >
bool is_inside (const AxisAlignedBoundingBox &aabb, const PointT &p)
 

Function Documentation

◆ central_distance()

float simox::aabb::central_distance ( const AxisAlignedBoundingBox lhs,
const AxisAlignedBoundingBox rhs 
)

Return the distance between center of lhs's and rhs's centers.

◆ central_squared_distance()

float simox::aabb::central_squared_distance ( const AxisAlignedBoundingBox lhs,
const AxisAlignedBoundingBox rhs 
)

Return the squared distance between lhs's center and rhs's centers.

◆ from_points() [1/2]

template<class PointT >
AxisAlignedBoundingBox simox::aabb::from_points ( const std::vector< PointT > &  points)

◆ from_points() [2/2]

AxisAlignedBoundingBox simox::aabb::from_points ( const std::vector< Eigen::Vector3f > &  points)
inline

◆ is_colliding()

bool simox::aabb::is_colliding ( const AxisAlignedBoundingBox lhs,
const AxisAlignedBoundingBox rhs 
)

Checks whether lhs is colliding (i.e. overlapping) with rhs.

◆ is_inside() [1/2]

bool simox::aabb::is_inside ( const AxisAlignedBoundingBox aabb,
const Eigen::Vector3f &  point 
)

Indicates whether point is inside aabb.

◆ is_inside() [2/2]

template<class PointT >
bool simox::aabb::is_inside ( const AxisAlignedBoundingBox aabb,
const PointT &  p 
)

Indicates whether point is inside aabb. PointT must have members variables x, y, z.