Go to the documentation of this file.
26 #include "../stdext/types.h"
76 float length()
const {
return sqrt((
float)(
x*
x +
y*
y)); }
92 out << point.
x <<
" " << point.
y;
TPoint< T > operator+(T other) const
bool operator<=(const TPoint< T > &other) const
std::ostream & operator<<(std::ostream &out, const TPoint< T > &point)
TPoint< T > operator/(const TPoint< T > &other) const
TPoint< T > & operator=(const TPoint< T > &other)
TPoint< T > operator/(float v) const
TPoint< T > operator-(const TPoint< T > &other) const
TPoint< T > operator*(float v) const
TPoint< T > & operator+=(T other)
TPoint< T > operator-(T other) const
TSize< T > toSize() const
T manhattanLength() const
float distanceFrom(const TPoint< T > &other) const
TPoint< T > & operator*=(const TPoint< T > &other)
TPoint(const TPoint< T > &other)
TPoint< T > & operator+=(const TPoint< T > &other)
TPoint< T > operator+(const TPoint< T > &other) const
TPoint< T > operator*(const TPoint< T > &other) const
bool operator!=(const TPoint< T > &other) const
TPoint< T > & operator*=(float v)
TPoint< T > & operator-=(T other)
bool operator>=(const TPoint< T > &other) const
TPoint< T > & operator-=(const TPoint< T > &other)
bool operator==(const TPoint< T > &other) const
TPoint< T > operator-() const
TPoint< T > & operator&=(int a)
std::istream & operator>>(std::istream &in, TPoint< T > &point)
TPoint< T > operator&(int a)
TPoint< T > & operator/=(const TPoint< T > &other)
bool operator>(const TPoint< T > &other) const
bool operator<(const TPoint< T > &other) const
TPoint< T > & operator/=(float v)