64 Point(){ this->x = 0; this->y = 0; }
73 Point(
int x,
int y){this->x = x;this->y = y;}
76 bool isNull()
const {
return (*
this)==
null; }
100 Point&
operator*=(
double d) {x=(int)((
double)x*d); y=(int)((
double)y*d);
return *
this;};
104 return Point((
int)(xfac*x),(
int)(yfac*y));
108 float distanceTo(
const Point &p)
const;
undocument this line if you encounter any issues!
Definition: Any.h:37
Point(const Point &p)
deep copy of a Point
Definition: Point.h:67
Point & operator+=(const Point &s)
Adds another Point inplace.
Definition: Point.h:94
int & operator[](int i)
index based interface (returns i?y:x)
Definition: Point.h:111
#define ICLUtils_API
this macros are important for creating dll's
Definition: CompatMacros.h:171
bool operator==(const Point &s) const
checks if two points are equal
Definition: Point.h:79
Point()
default constructor
Definition: Point.h:64
bool operator!=(const Point &s) const
checks if two points are not equal
Definition: Point.h:82
FixedMatrix< T, V_COLS, M_ROWS_AND_COLS > & operator *=(FixedMatrix< T, V_COLS, M_ROWS_AND_COLS > &v, const FixedMatrix< T, M_ROWS_AND_COLS, M_ROWS_AND_COLS > &m)
Matrix multiplication (inplace)
Definition: FixedMatrix.h:959
ICLUtils_API std::ostream & operator<<(std::ostream &s, const ConfigFile &cf)
Default ostream operator to put a ConfigFile into a stream.
Point(int x, int y)
create a special point
Definition: Point.h:73
ICLUtils_API std::istream & operator>>(std::istream &s, Point &p)
istream operator
Point operator+(const Point &s) const
adds two Points as vectors
Definition: Point.h:85
ICLQt_API ImgQ operator *(const ImgQ &a, const ImgQ &b)
multiplies two images pixel-wise
Single precission 3D Vectors Point class of the ICL.
Definition: Point32f.h:41
Point class of the ICL used e.g. for the Images ROI offset.
Definition: Point.h:58
Point transform(double xfac, double yfac) const
transforms the point by element-wise scaling
Definition: Point.h:103
const int & operator[](int i) const
index based interface, const (returns i?y:x)
Definition: Point.h:114
Point operator-(const Point &s) const
substracts two Points as vectors
Definition: Point.h:88
Point & operator-=(const Point &s)
Substacts another Point inplace.
Definition: Point.h:97
bool isNull() const
checks wether the object instance is null, i.e. all elements are zero
Definition: Point.h:76