- Timestamp:
- Apr 11, 2013, 12:26:04 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/nanovis/vrmath/include/vrmath/BBox.h
r3494 r3628 35 35 BBox(const Vector3f& min, const Vector3f& max); 36 36 37 BBox& operator=(const BBox& other) 38 { 39 if (&other != this) { 40 min = other.min; 41 max = other.max; 42 } 43 return *this; 44 } 45 37 46 /** 38 47 * @brief make an empty bounding box … … 51 60 */ 52 61 bool isEmpty(); 62 bool isEmptyX(); 63 bool isEmptyY(); 64 bool isEmptyZ(); 53 65 54 66 /** … … 63 75 64 76 /** 65 * @brief transform a bounding box with a nmatrix and set the bounding box77 * @brief transform a bounding box with a matrix and set the bounding box 66 78 */ 67 79 void transform(const BBox& box, const Matrix4x4d& mat); … … 73 85 74 86 /** 75 * @brief check if the bounding box intersect witha point87 * @brief check if the bounding box contains a point 76 88 */ 77 bool intersect(const Vector3f& point);89 bool contains(const Vector3f& point); 78 90 79 91 float getRadius() const; … … 93 105 { 94 106 Vector3f temp; 95 temp.x = (max.x + min.x) * 0.5f;107 temp.x = (max.x + min.x) * 0.5f; 96 108 temp.y = (max.y + min.y) * 0.5f; 97 109 temp.z = (max.z + min.z) * 0.5f;
Note: See TracChangeset
for help on using the changeset viewer.