owlps/GuiNuMo-server/point.cc

32 lines
524 B
C++

#include "point.hh"
Point Point::operator=(const Point &p)
{
if(this == &p)
return *this;
x = p.x;
y = p.y;
z = p.z;
return *this;
}
bool Point::operator==(const Point &p)const
{
if((x == p.x) && (y == p.y) && (z == p.z))
return true;
return false;
}
bool Point::operator!=(const Point &p)const
{
if((x == p.x) && (y == p.y) && (z == p.z))
return false;
return true;
}
ostream &operator<<(ostream &os, const Point &p)
{
os << "(" << p.x << ";" << p.y << ";" << p.z << ")";
return os;
}