2
0

Bounds.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. namespace BansheeEngine
  4. {
  5. /** @addtogroup Math
  6. * @{
  7. */
  8. /// <summary>
  9. /// Bounds represented by an axis aligned box and a sphere.
  10. /// </summary>
  11. public struct Bounds
  12. {
  13. /// <summary>
  14. /// Creates new bounds.
  15. /// </summary>
  16. /// <param name="box">Axis aligned box representation of the bounds.</param>
  17. /// <param name="sphere">Sphere representation of the bounds.</param>
  18. public Bounds(AABox box, Sphere sphere)
  19. {
  20. Box = box;
  21. Sphere = sphere;
  22. }
  23. /// <summary>
  24. /// Axis aligned box representation of the bounds.
  25. /// </summary>
  26. public AABox Box;
  27. /// <summary>
  28. /// Sphere representation of the bounds.
  29. /// </summary>
  30. public Sphere Sphere;
  31. }
  32. /** @} */
  33. }