Simox
2.3.74.0
|
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) |
float simox::aabb::central_distance | ( | const AxisAlignedBoundingBox & | lhs, |
const AxisAlignedBoundingBox & | rhs | ||
) |
Return the distance between center of lhs
's and rhs
's centers.
float simox::aabb::central_squared_distance | ( | const AxisAlignedBoundingBox & | lhs, |
const AxisAlignedBoundingBox & | rhs | ||
) |
Return the squared distance between lhs
's center and rhs
's centers.
AxisAlignedBoundingBox simox::aabb::from_points | ( | const std::vector< PointT > & | points | ) |
|
inline |
bool simox::aabb::is_colliding | ( | const AxisAlignedBoundingBox & | lhs, |
const AxisAlignedBoundingBox & | rhs | ||
) |
Checks whether lhs
is colliding (i.e. overlapping) with rhs
.
bool simox::aabb::is_inside | ( | const AxisAlignedBoundingBox & | aabb, |
const Eigen::Vector3f & | point | ||
) |
Indicates whether point
is inside aabb
.
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.