| 47 | } |
| 48 | |
| 49 | void BoundingBox::FromPoints(const Float3* points, int32 pointsCount, BoundingBox& result) |
| 50 | { |
| 51 | ASSERT(points && pointsCount > 0); |
| 52 | Float3 min = points[0]; |
| 53 | Float3 max = points[0]; |
| 54 | for (int32 i = 1; i < pointsCount; i++) |
| 55 | { |
| 56 | Float3::Min(min, points[i], min); |
| 57 | Float3::Max(max, points[i], max); |
| 58 | } |
| 59 | result = BoundingBox(min, max); |
| 60 | } |
| 61 | |
| 62 | void BoundingBox::FromPoints(const Double3* points, int32 pointsCount, BoundingBox& result) |
| 63 | { |
nothing calls this directly
no test coverage detected