SDC C-Project CF Review 프로그램
KEJ
2023-11-24 9020bfb6f86ff853d5d5b3cee882132a244232da
ReviewHistory/include/akSTL/inl/akPointT.inl
새 파일
@@ -0,0 +1,70 @@
//#include "../akPointT.h"
#define AKINLINE inline
template<typename T> AKINLINE
CakPointT<T> CakPointT<T>::operator-( CakPointT<T> point ) const throw()
{
   return CakPointT(x - point.x, y - point.y);
}
template<typename T> AKINLINE
CakPointT<T> CakPointT<T>::operator+( CakPointT<T> point ) const throw()
{
   return CakPointT(x + point.x, y + point.y);
}
template<typename T> AKINLINE
CakPointT<T> CakPointT<T>::operator-() const throw()
{
   return CakPointT(-x,-y);
}
template<typename T> AKINLINE
void CakPointT<T>::operator-=( CakPointT<T> point ) throw()
{
   x -= point.x;
   y -= point.y;
}
template<typename T> AKINLINE
void CakPointT<T>::operator+=( CakPointT<T> point ) throw()
{
   x += point.x;
   y += point.y;
}
template<typename T> AKINLINE
bool CakPointT<T>::operator!=( CakPointT<T> point ) const throw()
{
   return (x != point.x || y != point.y);
}
template<typename T> AKINLINE
bool CakPointT<T>::operator==( CakPointT<T> point ) const throw()
{
   return (x == point.x && y == point.y);
}
template<typename T> AKINLINE
void CakPointT<T>::SetPoint( T X, T Y ) throw()
{
   x = X;
   y = Y;
}
template<typename T> AKINLINE
void CakPointT<T>::Offset( CakPointT<T> point ) throw()
{
   x += point.x;
   y += point.y;
}
template<typename T> AKINLINE
void CakPointT<T>::Offset( T xOffset, T yOffset ) throw()
{
   x += xOffset;
   y += yOffset;
}