Changeset 1867 for GTP/trunk/Lib/Vis/Preprocessing/src/AxisAlignedBox3.cpp
- Timestamp:
- 12/08/06 17:10:14 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/AxisAlignedBox3.cpp
r1824 r1867 2275 2275 halton.GenerateNext(); 2276 2276 2277 return mMin + size*Vector3(halton.GetNumber(1),2278 2279 halton.GetNumber(3));2280 2277 return GetRandomPoint(Vector3(halton.GetNumber(1), 2278 halton.GetNumber(2), 2279 halton.GetNumber(3))); 2280 2281 2281 #else 2282 return mMin + Vector3(RandomValue(0.0f, size.x),2283 RandomValue(0.0f, size.y),2284 RandomValue(0.0f, size.z));2282 return GetRandomPoint(Vector3(RandomValue(0.0f, 1.0f), 2283 RandomValue(0.0f, 1.0f), 2284 RandomValue(0.0f, 1.0f))); 2285 2285 #endif 2286 2286 } 2287 2287 2288 Vector3 2289 AxisAlignedBox3::GetRandomPoint(const Vector3 &r) const 2290 { 2291 return mMin + Size()*r; 2292 } 2288 2293 2289 2294 Vector3 AxisAlignedBox3::GetRandomSurfacePoint() const
Note: See TracChangeset
for help on using the changeset viewer.