2013-06-02 14:32:43 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* BoundingSphere.h *
|
|
|
|
* *
|
2013-07-12 21:30:13 +02:00
|
|
|
* XFX::BoundingSphere definition file *
|
2013-06-02 14:32:43 +02:00
|
|
|
* Copyright (c) XFX Team. All Rights Reserved *
|
|
|
|
*****************************************************************************/
|
2013-05-05 18:18:41 +02:00
|
|
|
#ifndef _XFX_BOUNDINGSPHERE_
|
|
|
|
#define _XFX_BOUNDINGSPHERE_
|
|
|
|
|
|
|
|
#include <System/Interfaces.h>
|
|
|
|
#include "Vector3.h"
|
|
|
|
|
|
|
|
using namespace System;
|
|
|
|
|
|
|
|
namespace XFX
|
|
|
|
{
|
2013-07-12 21:30:13 +02:00
|
|
|
/**
|
|
|
|
* Defines a sphere.
|
|
|
|
*/
|
2013-05-05 18:18:41 +02:00
|
|
|
struct BoundingSphere : IEquatable<BoundingSphere>, Object
|
|
|
|
{
|
|
|
|
Vector3 Center;
|
|
|
|
float Radius;
|
|
|
|
|
|
|
|
BoundingSphere(const Vector3 center, const float radius);
|
|
|
|
BoundingSphere(const BoundingSphere &obj);
|
|
|
|
BoundingSphere();
|
|
|
|
|
2013-05-31 15:58:00 +02:00
|
|
|
bool Equals(Object const * const obj) const;
|
2013-05-05 18:18:41 +02:00
|
|
|
bool Equals(const BoundingSphere other) const;
|
|
|
|
int GetHashCode() const;
|
2013-07-12 21:30:13 +02:00
|
|
|
static const Type& GetType();
|
2013-07-11 20:00:07 +02:00
|
|
|
const String ToString() const;
|
2013-05-05 18:18:41 +02:00
|
|
|
|
|
|
|
bool operator==(const BoundingSphere& other) const;
|
|
|
|
bool operator!=(const BoundingSphere& other) const;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //_XFX_BOUNDINGSPHERE_
|