| 90 | } |
| 91 | |
| 92 | Vector3 OrientedBoundingBox::GetSize() const |
| 93 | { |
| 94 | const Vector3 xv = Transformation.LocalToWorldVector(Vector3(Extents.X * 2, 0, 0)); |
| 95 | const Vector3 yv = Transformation.LocalToWorldVector(Vector3(0, Extents.Y * 2, 0)); |
| 96 | const Vector3 zv = Transformation.LocalToWorldVector(Vector3(0, 0, Extents.Z * 2)); |
| 97 | return Vector3(xv.Length(), yv.Length(), zv.Length()); |
| 98 | } |
| 99 | |
| 100 | Vector3 OrientedBoundingBox::GetSizeSquared() const |
| 101 | { |
no test coverage detected