using System.Runtime.InteropServices;
namespace BansheeEngine
{
///
/// A sphere represented by a center point and a radius.
///
[StructLayout(LayoutKind.Sequential), SerializeObject]
public struct Sphere // Note: Must match C++ enum Sphere
{
private float _radius;
private Vector3 _center;
///
/// Center point of the sphere.
///
public Vector3 Center
{
get { return _center; }
set { _center = value; }
}
///
/// Radius of the sphere.
///
public float Radius
{
get { return _radius; }
set { _radius = value; }
}
///
/// Creates a new sphere object.
///
/// Center point of the sphere.
/// Radius of the sphere.
public Sphere(Vector3 center, float radius)
{
_center = center;
_radius = radius;
}
};
}