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
|
|
|
|
public:
|
|
|
|
|
int X;
|
|
|
|
|
int Y;
|
|
|
|
|
static const Point Zero;
|
2010-12-04 16:14:34 +00:00
|
|
|
|
|
2011-11-07 01:29:50 +00:00
|
|
|
|
Point(int x, int y);
|
|
|
|
|
Point(const Point &obj);
|
|
|
|
|
Point();
|
|
|
|
|
|
|
|
|
|
bool Equals(Point other);
|
|
|
|
|
bool operator==(const Point right);
|
|
|
|
|
bool operator!=(const Point right);
|
|
|
|
|
Point operator=(const Point right);
|
2010-12-04 16:14:34 +00:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
2011-11-07 01:29:50 +00:00
|
|
|
|
#endif //_XFX_POINT_
|