Initial Commit
This commit is contained in:
30
common/POINT.CPP
Normal file
30
common/POINT.CPP
Normal file
@@ -0,0 +1,30 @@
|
||||
#include <common/point.hpp>
|
||||
|
||||
Point &Point::operator--(void)
|
||||
{
|
||||
COMMONPOINT::x--;
|
||||
COMMONPOINT::y--;
|
||||
return *this;
|
||||
}
|
||||
|
||||
Point Point::operator--(int /*prefixDummy*/)
|
||||
{
|
||||
Point prePoint(*this);
|
||||
--(*this);
|
||||
return prePoint;
|
||||
}
|
||||
|
||||
Point Point::operator++(int /*prefixDummy*/)
|
||||
{
|
||||
Point prePoint(*this);
|
||||
++(*this);
|
||||
return prePoint;
|
||||
}
|
||||
|
||||
Point Point::operator+(const Point &somePoint)const
|
||||
{
|
||||
Point tmpPoint(*this);
|
||||
tmpPoint+=somePoint;
|
||||
return tmpPoint;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user