SDC C-Project CF Review 프로그램
LYW
2021-07-08 9cbd9e554f9956b3b945b51602f1d4a3fa0353e1
ReviewHistory/include/akCore/akStructPoint.h
새 파일
@@ -0,0 +1,51 @@
#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;
   };
};