Go to the documentation of this file.
6 #ifndef CNOID_UTIL_BOUNDING_BOX_H
7 #define CNOID_UTIL_BOUNDING_BOX_H
11 #include "exportdecl.h"
26 return (min_ == rhs.min_) && (max_ == rhs.max_);
35 bool empty()
const {
return empty_; }
36 explicit operator bool()
const {
return !empty_; }
41 double boundingSphereRadius()
const;
44 void expandBy(
double x,
double y,
double z);
47 void transform(
const Affine3& T);
56 CNOID_EXPORT std::ostream&
operator<<(std::ostream& os,
const BoundingBox& bb);
70 return (min_ == rhs.min_) && (max_ == rhs.max_);
76 void set(
const Vector3f& min,
const Vector3f& max);
79 bool empty()
const {
return empty_; }
80 explicit operator bool()
const {
return !empty_; }
81 const Vector3f&
min()
const {
return min_; }
82 const Vector3f&
max()
const {
return max_; }
83 Vector3f center()
const;
84 Vector3f size()
const;
85 float boundingSphereRadius()
const;
89 void expandBy(
float x,
float y,
float z);
92 void transform(
const Affine3f& T);
101 CNOID_EXPORT std::ostream&
operator<<(std::ostream& os,
const BoundingBoxf& bb);
bool operator!=(const BoundingBoxf &rhs) const
Definition: BoundingBox.h:72
const Vector3 & min() const
Definition: BoundingBox.h:37
Eigen::Vector3d Vector3
Definition: EigenTypes.h:57
void expandBy(const Vector3f &v)
Definition: BoundingBox.h:90
Definition: BoundingBox.h:61
CNOID_EXPORT std::ostream & operator<<(std::ostream &os, const BoundingBox &bb)
Definition: BoundingBox.cpp:160
bool empty() const
Definition: BoundingBox.h:79
const Vector3 & max() const
Definition: BoundingBox.h:38
bool empty() const
Definition: BoundingBox.h:35
bool operator!=(const BoundingBox &rhs) const
Definition: BoundingBox.h:28
Definition: AbstractSceneLoader.h:11
bool operator==(ref_ptr< T > const &a, ref_ptr< U > const &b)
Definition: Referenced.h:211
const Vector3f & min() const
Definition: BoundingBox.h:81
const Vector3f & max() const
Definition: BoundingBox.h:82
bool operator==(const BoundingBox &rhs) const
Definition: BoundingBox.h:25
bool operator==(const BoundingBoxf &rhs) const
Definition: BoundingBox.h:69
void expandBy(const Vector3 &v)
Definition: BoundingBox.h:45
Eigen::Affine3d Affine3
Definition: EigenTypes.h:62
Definition: BoundingBox.h:17