| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- using System.Runtime.InteropServices;
- namespace BansheeEngine
- {
- /** @addtogroup Math
- * @{
- */
- /// <summary>
- /// Bounds represented by an axis aligned box and a sphere.
- /// </summary>
- [StructLayout(LayoutKind.Sequential), SerializeObject]
- public struct Bounds
- {
- /// <summary>
- /// Creates new bounds.
- /// </summary>
- /// <param name="box">Axis aligned box representation of the bounds.</param>
- /// <param name="sphere">Sphere representation of the bounds.</param>
- public Bounds(AABox box, Sphere sphere)
- {
- Box = box;
- Sphere = sphere;
- }
- /// <summary>
- /// Axis aligned box representation of the bounds.
- /// </summary>
- public AABox Box;
- /// <summary>
- /// Sphere representation of the bounds.
- /// </summary>
- public Sphere Sphere;
- }
- /** @} */
- }
|