2010-12-04 16:14:34 +00:00
|
|
|
|
/********************************************************
|
|
|
|
|
* BoundingSphere.h *
|
|
|
|
|
* *
|
|
|
|
|
* XFX BoundingSphere definition file *
|
|
|
|
|
* Copyright <EFBFBD> XFX Team. All Rights Reserved *
|
|
|
|
|
********************************************************/
|
|
|
|
|
#ifndef _XFX_BOUNDINGSPHERE_
|
|
|
|
|
#define _XFX_BOUNDINGSPHERE_
|
|
|
|
|
|
2012-03-29 22:02:43 +00:00
|
|
|
|
#include <System/Interfaces.h>
|
2010-12-04 16:14:34 +00:00
|
|
|
|
#include "Vector3.h"
|
|
|
|
|
|
2012-03-29 22:02:43 +00:00
|
|
|
|
using namespace System;
|
|
|
|
|
|
2010-12-04 16:14:34 +00:00
|
|
|
|
namespace XFX
|
|
|
|
|
{
|
2012-03-29 22:02:43 +00:00
|
|
|
|
// Defines a sphere.
|
2012-09-28 20:36:02 +00:00
|
|
|
|
struct BoundingSphere : IEquatable<BoundingSphere>, Object
|
2010-12-04 16:14:34 +00:00
|
|
|
|
{
|
|
|
|
|
Vector3 Center;
|
|
|
|
|
float Radius;
|
|
|
|
|
|
2012-03-29 22:02:43 +00:00
|
|
|
|
BoundingSphere(const Vector3 center, const float radius);
|
2010-12-04 16:14:34 +00:00
|
|
|
|
BoundingSphere(const BoundingSphere &obj);
|
|
|
|
|
BoundingSphere();
|
2012-03-29 22:02:43 +00:00
|
|
|
|
|
2012-09-28 20:36:02 +00:00
|
|
|
|
bool Equals(const Object* obj) const;
|
2012-03-29 22:02:43 +00:00
|
|
|
|
bool Equals(const BoundingSphere other) const;
|
|
|
|
|
int GetHashCode() const;
|
2012-09-28 20:36:02 +00:00
|
|
|
|
int GetType() const;
|
2012-03-29 22:02:43 +00:00
|
|
|
|
const char* ToString() const;
|
2010-12-04 16:14:34 +00:00
|
|
|
|
|
2012-09-28 20:36:02 +00:00
|
|
|
|
bool operator==(const BoundingSphere& other) const;
|
|
|
|
|
bool operator!=(const BoundingSphere& other) const;
|
2010-12-04 16:14:34 +00:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif //_XFX_BOUNDINGSPHERE_
|