The Vertex class defines a vertex of an obstacle polygon. More...
#include <Geom.h>
Public Member Functions | |
bool | IsConvex () const |
Return convexity of vertex. More... | |
Vertex & | operator= (const Vertex &obj) |
Assignment operator. More... | |
void | SetConvex (bool cvx) |
Sets convexity of vertex. More... | |
Vertex () | |
Vertex default constructor. More... | |
Vertex (float x, float y, bool cvx=false) | |
Vertex constructor. More... | |
Vertex (const Point &obj, bool cvx=false) | |
Vertex constructor. More... | |
Vertex (const Vertex &obj) | |
Vertex copy constructor. More... | |
~Vertex () override=default | |
Default destructor. More... | |
![]() | |
float | Det (Point another) const |
Computes the determinant of matrix. More... | |
float | EuclideanNorm () const |
Computes euclidean norm of vector. More... | |
std::pair< float, float > | GetPair () |
Creates STL pair (x,y) from point. More... | |
Point | operator* (float k) const |
operator * More... | |
Point | operator+ (const Point &another) const |
operator + More... | |
Point | operator- (const Point &another) const |
operator - More... | |
Point | operator- () const |
operator - More... | |
Point | operator/ (float k) const |
operator / More... | |
virtual Point & | operator= (const Point &obj) |
Assignment operator. More... | |
bool | operator== (const Point &another) const |
operator == More... | |
Point () | |
Point default constructor. More... | |
Point (float x, float y) | |
Point constructor with parameters. More... | |
Point (const Point &obj) | |
Point copy constructor. More... | |
float | ScalarProduct (const Point &another) const |
Computes scalar product of vectors (this * anoher) More... | |
float | SquaredEuclideanNorm () const |
Computes squared euclidean norm of vector. More... | |
std::string | ToString () const |
Creates STL string, which contains x,y values. More... | |
float | X () const |
Returns X-coordinate of the point. More... | |
float | Y () const |
Returns Y-coordinate of the point. More... | |
virtual | ~Point ()=default |
Default destructor. More... | |
Private Attributes | |
bool | convex |
Convexity of vertex. More... | |
|
inline |
|
inline |
|
inline |
|
overridedefault |
Default destructor.
bool Vertex::IsConvex | ( | ) | const |
void Vertex::SetConvex | ( | bool | cvx | ) |