initial import

This commit is contained in:
Mo Elzubeir
2022-12-13 09:18:00 -06:00
commit d2d561810c
322 changed files with 1147261 additions and 0 deletions
+50
View File
@@ -0,0 +1,50 @@
#include "Coordinates.h"
Coordinates::Coordinates(int top, int left, int bottom, int right)
{
m_top = top;
m_left = left;
m_bottom= bottom;
m_right = right;
}
bool Coordinates::operator == (Coordinates const & coor)
{
return (
(m_top == coor.m_top) &&
(m_left == coor.m_left) &&
(m_bottom == coor.m_bottom) &&
(m_right == coor.m_right)
);
}
int Coordinates::top()
{
return m_top;
}
int Coordinates::left()
{
return m_left;
}
int Coordinates::bottom()
{
return m_bottom;
}
int Coordinates::right()
{
return m_right;
}
ostream & operator<<( std::ostream & out, Coordinates const & coor)
{
out << "(" << coor.m_top << "," << coor.m_left << ")<->(" << coor.m_bottom << "," << coor.m_right << ")" << endl;
return out;
}