| 98 | } |
| 99 | |
| 100 | Vector3 OrientedBoundingBox::GetSizeSquared() const |
| 101 | { |
| 102 | const Vector3 xv = Transformation.LocalToWorldVector(Vector3(Extents.X * 2, 0, 0)); |
| 103 | const Vector3 yv = Transformation.LocalToWorldVector(Vector3(0, Extents.Y * 2, 0)); |
| 104 | const Vector3 zv = Transformation.LocalToWorldVector(Vector3(0, 0, Extents.Z * 2)); |
| 105 | return Vector3(xv.LengthSquared(), yv.LengthSquared(), zv.LengthSquared()); |
| 106 | } |
| 107 | |
| 108 | BoundingBox OrientedBoundingBox::GetBoundingBox() const |
| 109 | { |
nothing calls this directly
no test coverage detected