Bounds.cs 1.0 KB

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