| 103 | } |
| 104 | |
| 105 | BoundingBox BoundingBox::MakeScaled(const BoundingBox& box, Real scale) |
| 106 | { |
| 107 | Vector3 size; |
| 108 | Vector3::Subtract(box.Maximum, box.Minimum, size); |
| 109 | Vector3 sizeHalf = size * 0.5f; |
| 110 | const Vector3 center = box.Minimum + sizeHalf; |
| 111 | sizeHalf = sizeHalf * scale; |
| 112 | return BoundingBox(center - sizeHalf, center + sizeHalf); |
| 113 | } |
| 114 | |
| 115 | void BoundingBox::Transform(const BoundingBox& box, const Matrix& matrix, BoundingBox& result) |
| 116 | { |
nothing calls this directly
no test coverage detected