SDC C-Project CF Review 프로그램
LYW
2021-07-29 bd13fa3f9396f1f681759f4623c55d5f91d74a9c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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;
    };
 
};