22 #ifndef CRNPOINT3D_HEADER
23 #define CRNPOINT3D_HEADER
66 class Sorter:
public std::binary_function<const Point3D&, const Point3D&, bool>
79 if (p1.
X < p2.
X)
return true;
80 else if (p1.
X > p2.
X)
return false;
82 if (p1.
Y < p2.
Y)
return true;
83 else if (p1.
Y > p2.
Y)
return false;
85 if (p1.
Z < p2.
Z)
return true;
Point3D()
Default constructor (sets coordinates to 0)
Point3D & operator=(const Point3D &)=default
Functor to sort rectangles regarding directions.
T value_type
The value type.
virtual ~Point3D()
Destructor.
bool operator==(const Point3D &p) const noexcept
Equality.
bool operator()(const Point3D &p1, const Point3D &p2) const
Comparison function.
Point3D(T x, T y, T z)
Constructor from values.