Public Member Functions | Private Attributes | List of all members
Vertex Class Reference

The Vertex class defines a vertex of an obstacle polygon. More...

#include <Geom.h>

Inheritance diagram for Vertex:
Inheritance graph
[legend]

Public Member Functions

bool IsConvex () const
 Return convexity of vertex. More...
 
Vertexoperator= (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...
 
- Public Member Functions inherited from Point
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 Pointoperator= (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...
 

Detailed Description

The Vertex class defines a vertex of an obstacle polygon.

Definition at line 213 of file Geom.h.

Constructor & Destructor Documentation

Vertex::Vertex ( )
inline

Vertex default constructor.

Definition at line 219 of file Geom.h.

Vertex::Vertex ( float  x,
float  y,
bool  cvx = false 
)
inline

Vertex constructor.

Parameters
xX-coordinate of the vertex.
yY-coordinate of the vertex.
cvxConvexity of vertex

Definition at line 227 of file Geom.h.

Vertex::Vertex ( const Point obj,
bool  cvx = false 
)
inline

Vertex constructor.

Parameters
objPosition of vertex
cvxConvexity of vertex

Definition at line 234 of file Geom.h.

Vertex::Vertex ( const Vertex obj)
inline

Vertex copy constructor.

Parameters
objObject to copy.

Definition at line 240 of file Geom.h.

Vertex::~Vertex ( )
overridedefault

Default destructor.

Member Function Documentation

bool Vertex::IsConvex ( ) const

Return convexity of vertex.

Returns
Convexity of vertex.

Definition at line 55 of file Geom.cpp.

Vertex & Vertex::operator= ( const Vertex obj)
inline

Assignment operator.

Parameters
objObject to assign
Returns
Reference to object.

Definition at line 518 of file Geom.h.

void Vertex::SetConvex ( bool  cvx)

Sets convexity of vertex.

Parameters
cvxConvexity of vertex.

Definition at line 61 of file Geom.cpp.

Member Data Documentation

bool Vertex::convex
private

Convexity of vertex.

Definition at line 267 of file Geom.h.


The documentation for this class was generated from the following files:


ORCAStar
Author(s): Stepan Drgachev
autogenerated on Wed Jul 15 2020 16:13:14