새 파일 |
| | |
| | | #pragma once |
| | | |
| | | #include "akCoreLinker.h" |
| | | |
| | | |
| | | namespace akCore |
| | | { |
| | | |
| | | class AKCORE_DLLSPEC khPoint |
| | | { |
| | | public: |
| | | khPoint(void) |
| | | { |
| | | X = Y = 0; |
| | | }; |
| | | |
| | | khPoint(const khPoint &point) |
| | | { |
| | | X = point.X; |
| | | Y = point.Y; |
| | | }; |
| | | khPoint(int x, int y) |
| | | { |
| | | X = x; |
| | | Y = y; |
| | | }; |
| | | |
| | | khPoint operator+(const khPoint& point) const |
| | | { |
| | | return khPoint(X + point.X, |
| | | Y + point.Y); |
| | | }; |
| | | |
| | | khPoint operator-(const khPoint& point) const |
| | | { |
| | | return khPoint(X - point.X, |
| | | Y - point.Y); |
| | | }; |
| | | |
| | | bool Equals(const khPoint& point) |
| | | { |
| | | return (X == point.X) && (Y == point.Y); |
| | | }; |
| | | |
| | | public: |
| | | |
| | | long X; |
| | | long Y; |
| | | }; |
| | | |
| | | }; |