Changeset 177 for trunk/VUT/GtpVisibilityPreprocessor/src/AxisAlignedBox3.h
- Timestamp:
- 07/18/05 11:27:52 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/AxisAlignedBox3.h
r170 r177 104 104 105 105 106 int 107 Side(const Plane3 &plane) const; 106 108 107 109 // Overlap returns 1 if the two axis-aligned boxes overlap .. even weakly … … 123 125 124 126 virtual int IsInside(const Vector3 &v) const; 125 127 126 128 // Test if the box is really sensefull 127 129 virtual bool IsCorrect(); … … 167 169 // 1 ... the cube contains fully the box 168 170 int MutualPositionWithCube(const Vector3 ¢er, float halfSize) const; 171 172 173 Vector3 GetRandomPoint() { 174 Vector3 size = Size(); 175 return mMin + Vector3(RandomValue(0, size.x), 176 RandomValue(0, size.y), 177 RandomValue(0, size.z)); 178 } 169 179 170 180 // Returns the smallest axis-aligned box that includes all points … … 181 191 const Matrix4x4 &tform); 182 192 193 183 194 // returns true when two boxes are completely equal 184 195 friend inline int operator== (const AxisAlignedBox3 &A, const AxisAlignedBox3 &B);
Note: See TracChangeset
for help on using the changeset viewer.