2010-12-04 16:14:34 +00:00
|
|
|
|
/********************************************************
|
|
|
|
|
* Point.h *
|
|
|
|
|
* *
|
|
|
|
|
* XFX Point definition file *
|
|
|
|
|
* Copyright <EFBFBD> XFX Team. All Rights Reserved *
|
|
|
|
|
********************************************************/
|
2011-11-07 01:29:50 +00:00
|
|
|
|
#ifndef _XFX_POINT_
|
|
|
|
|
#define _XFX_POINT_
|
2010-12-04 16:14:34 +00:00
|
|
|
|
|
2011-11-07 01:29:50 +00:00
|
|
|
|
#include <System/Interfaces.h>
|
|
|
|
|
#include <System/Object.h>
|
|
|
|
|
|
|
|
|
|
using namespace System;
|
2010-12-04 16:14:34 +00:00
|
|
|
|
|
|
|
|
|
namespace XFX
|
|
|
|
|
{
|
2011-11-07 01:29:50 +00:00
|
|
|
|
struct Point : public IEquatable<Point>, virtual Object
|
2010-12-04 16:14:34 +00:00
|
|
|
|
{
|
2011-11-07 01:29:50 +00:00
|
|
|
|
int X;
|
|
|
|
|
int Y;
|
|
|
|
|
static const Point Zero;
|
2010-12-04 16:14:34 +00:00
|
|
|
|
|
2012-03-29 22:02:43 +00:00
|
|
|
|
Point(const int x, const int y);
|
2011-11-07 01:29:50 +00:00
|
|
|
|
Point(const Point &obj);
|
|
|
|
|
Point();
|
|
|
|
|
|
2012-03-29 22:02:43 +00:00
|
|
|
|
bool Equals(const Point other) const;
|
|
|
|
|
int GetHashCode() const;
|
|
|
|
|
const char* ToString() const;
|
|
|
|
|
|
|
|
|
|
bool operator==(const Point right) const;
|
|
|
|
|
bool operator!=(const Point right) const;
|
2010-12-04 16:14:34 +00:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
2011-11-07 01:29:50 +00:00
|
|
|
|
#endif //_XFX_POINT_
|