Image Component Library (ICL)
|
Single precission 3D Vectors Point class of the ICL. More...
#include <Point32f.h>
Public Member Functions | |
Point32f () | |
default constructor More... | |
Point32f (const Point32f &p) | |
deep copy of a Point More... | |
Point32f (float x, float y) | |
create a special point More... | |
Point32f (const Point &p) | |
craete a point by a given interger point More... | |
bool | isNull () const |
checks wether the object instance is null, i.e. all elements are zero More... | |
bool | operator== (const Point32f &s) const |
checks if two points are equal More... | |
bool | operator!= (const Point32f &s) const |
checks if two points are not equal More... | |
Point32f | operator+ (const Point32f &s) const |
adds two Points as vectors More... | |
Point32f | operator- (const Point32f &s) const |
substracts two Point32fs as vectors More... | |
Point32f | operator * (double d) const |
scales a Point32fs variables with a scalar value More... | |
Point32f & | operator+= (const Point32f &s) |
Adds another Point32f inplace. More... | |
Point32f & | operator-= (const Point32f &s) |
Substacts another Point32f inplace. More... | |
Point32f & | operator *= (double d) |
scales the Point32f inplace with a scalar More... | |
Point32f | transform (double xfac, double yfac) const |
transforms the point by element-wise scaling More... | |
float | distanceTo (const Point32f &p) const |
returns the euclidian distance to another point More... | |
bool | inTriangle (const utils::Point32f &v1, const utils::Point32f &v2, const utils::Point32f &v3) const |
Checks whether the given point p lies within the triangle defined by v1,v2 and v3. More... | |
float | norm (float p=2) const |
returns the p-norm of the 2D Vector More... | |
Point32f & | normalize () |
normalized this 2D vector to length=1; More... | |
Point32f | normalized () const |
returns a normalized version of this Point More... | |
float & | operator[] (int i) |
index based interface (returns i?y:x) More... | |
const float & | operator[] (int i) const |
index based interface, const (returns i?y:x) More... | |
Public Attributes | |
float | x |
x position of this point More... | |
float | y |
y position of this point More... | |
Static Public Attributes | |
static const Point32f | null |
null Point is x=0, y=0 More... | |
Single precission 3D Vectors Point class of the ICL.
|
inline |
default constructor
|
inline |
create a special point
|
inline |
craete a point by a given interger point
float icl::utils::Point32f::distanceTo | ( | const Point32f & | p | ) | const |
returns the euclidian distance to another point
bool icl::utils::Point32f::inTriangle | ( | const utils::Point32f & | v1, |
const utils::Point32f & | v2, | ||
const utils::Point32f & | v3 | ||
) | const |
Checks whether the given point p lies within the triangle defined by v1,v2 and v3.
|
inline |
checks wether the object instance is null, i.e. all elements are zero
float icl::utils::Point32f::norm | ( | float | p = 2 | ) | const |
returns the p-norm of the 2D Vector
p | chooses the norm |
|
inline |
normalized this 2D vector to length=1;
uses the euclidian norm! @ return a reference to (this) normalized
|
inline |
returns a normalized version of this Point
|
inline |
scales a Point32fs variables with a scalar value
|
inline |
scales the Point32f inplace with a scalar
|
inline |
checks if two points are not equal
adds two Points as vectors
Adds another Point32f inplace.
substracts two Point32fs as vectors
Substacts another Point32f inplace.
|
inline |
checks if two points are equal
|
inline |
index based interface (returns i?y:x)
|
inline |
index based interface, const (returns i?y:x)
|
inline |
transforms the point by element-wise scaling
float icl::utils::Point32f::x |
x position of this point
float icl::utils::Point32f::y |
y position of this point