6 #ifndef STRUCTURAL_COMMONS_POINT_H_
7 #define STRUCTURAL_COMMONS_POINT_H_
21 Point(
const type&,
const type&);
31 return left1 += right;
37 return left1 -= right;
49 return left.
x() == right.
x() && left.
y() == right.
y();
54 return !(left == right);
57 friend std::ostream &operator<<(std::ostream& to, const Point<type>& point)
59 to << point.x() <<
" " << point.y();
Point< type > & operator+=(const Point< type > &)
Definition: point.h:107
Point< type > & operator/=(const type &)
Definition: point.h:131
friend Point< type > operator-(const Point< type > &left, const Point< type > &right)
Definition: point.h:34
type y() const
Definition: point.h:95
Definition: shape_interface.h:11
friend bool operator!=(const Point< type > &left, const Point< type > &right)
Definition: point.h:52
Point< type > & operator*=(const type &)
Definition: point.h:123
Point< type > operator-()
Definition: point.h:139
friend bool operator==(const Point< type > &left, const Point< type > &right)
Definition: point.h:47
Point< type > & operator-=(const Point< type > &)
Definition: point.h:115
Point()
Definition: point.h:74
friend std::istream & operator>>(std::istream &from, Point< type > &point)
Definition: point.h:63
friend Point< type > operator+(const Point< type > &left, const Point< type > &right)
Definition: point.h:28
type x() const
Definition: point.h:83