Bounds.cs 785 B

1234567891011121314151617181920212223242526272829
  1. namespace BansheeEngine
  2. {
  3. /// <summary>
  4. /// Bounds represented by an axis aligned box and a sphere.
  5. /// </summary>
  6. public struct Bounds
  7. {
  8. /// <summary>
  9. /// Creates new bounds.
  10. /// </summary>
  11. /// <param name="box">Axis aligned box representation of the bounds.</param>
  12. /// <param name="sphere">Sphere representation of the bounds.</param>
  13. public Bounds(AABox box, Sphere sphere)
  14. {
  15. Box = box;
  16. Sphere = sphere;
  17. }
  18. /// <summary>
  19. /// Axis aligned box representation of the bounds.
  20. /// </summary>
  21. public AABox Box;
  22. /// <summary>
  23. /// Sphere representation of the bounds.
  24. /// </summary>
  25. public Sphere Sphere;
  26. }
  27. }