Changeset 2691 for GTP/trunk/Lib/Vis/Preprocessing/src/AxisAlignedBox3.cpp
- Timestamp:
- 05/21/08 01:18:40 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/AxisAlignedBox3.cpp
r2686 r2691 2372 2372 } 2373 2373 2374 2375 void AxisAlignedBox3::GetRandomEdgePoint(Vector3 &point, 2376 Vector3 &normal) 2377 { 2378 // get random edge 2379 const int idx = Random(12); 2380 Vector3 a, b; 2381 GetEdge(idx, &a, &b); 2382 2383 const float w = RandomValue(0.0f, 1.0f); 2384 2385 point = a * w + b * (1.0f - w); 2386 2387 // TODO 2388 normal = Vector3(0); 2389 } 2390 2391 2374 2392 Vector3 2375 2393 AxisAlignedBox3::GetUniformRandomSurfacePoint() const
Note: See TracChangeset
for help on using the changeset viewer.