SDC C-Project CF Review 프로그램
LYW
2021-08-09 b354c153b0074e5d54371bc05b12edbe8e613a19
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
#pragma once
 
#include "akSTLLinker.h"
 
template<typename T>
class CakPointT
{
public:
    CakPointT(void){};
    CakPointT(const T& X, const T& Y):x(X),y(Y) {};
    //~CakPointT(void){};
 
    // Operations
 
    // translate the point
    void Offset(T xOffset, T yOffset) throw();
    void Offset(CakPointT<T> point) throw();
    void SetPoint(T X, T Y) throw();
 
    bool operator==(CakPointT<T> point) const throw();
    bool operator!=(CakPointT<T> point) const throw();
    void operator+=(CakPointT<T> point) throw();
    void operator-=(CakPointT<T> point) throw();
 
    // Operators returning CPoint values
    CakPointT<T> operator-() const throw();
    CakPointT<T> operator+(CakPointT<T> point) const throw();
    CakPointT<T> operator-(CakPointT<T> point) const throw();
 
 
 
public:
    T x;
    T y;
};
 
#include "inl/akPointT.inl"