Public Member Functions | Private Member Functions | Private Attributes | List of all members
swri_geometry_util::Polygon Class Reference

#include <polygon.h>

Public Member Functions

int GetNumVerticies ()
 
double GetXVerticie (int num)
 
double * GetXVerticies ()
 
double GetYVerticie (int num)
 
double * GetYVerticies ()
 
bool LineOverlapsPolygon (Vertex start, Vertex end)
 
Polygonoperator= (const Polygon &other)
 
 Polygon ()
 
 Polygon (const Polygon &other)
 
 Polygon (double Xs[], double Ys[], int numVertx)
 
bool VertexInPolygon (Vertex vertex)
 
 ~Polygon ()
 

Private Member Functions

Vertex FindLineIntersectLine (Vertex start1, Vertex end1, Vertex start2, Vertex end2)
 

Private Attributes

int _nvert
 
PolygonD _shape
 

Detailed Description

Definition at line 56 of file polygon.h.

Constructor & Destructor Documentation

swri_geometry_util::Polygon::Polygon ( )

Definition at line 35 of file polygon.cpp.

swri_geometry_util::Polygon::Polygon ( const Polygon other)

Definition at line 42 of file polygon.cpp.

swri_geometry_util::Polygon::Polygon ( double  Xs[],
double  Ys[],
int  numVertx 
)

Definition at line 80 of file polygon.cpp.

swri_geometry_util::Polygon::~Polygon ( )

Definition at line 207 of file polygon.cpp.

Member Function Documentation

Vertex swri_geometry_util::Polygon::FindLineIntersectLine ( Vertex  start1,
Vertex  end1,
Vertex  start2,
Vertex  end2 
)
private

Definition at line 142 of file polygon.cpp.

int swri_geometry_util::Polygon::GetNumVerticies ( )

Definition at line 201 of file polygon.cpp.

double swri_geometry_util::Polygon::GetXVerticie ( int  num)

Definition at line 190 of file polygon.cpp.

double * swri_geometry_util::Polygon::GetXVerticies ( )

Definition at line 178 of file polygon.cpp.

double swri_geometry_util::Polygon::GetYVerticie ( int  num)

Definition at line 196 of file polygon.cpp.

double * swri_geometry_util::Polygon::GetYVerticies ( )

Definition at line 184 of file polygon.cpp.

bool swri_geometry_util::Polygon::LineOverlapsPolygon ( Vertex  start,
Vertex  end 
)

Definition at line 111 of file polygon.cpp.

Polygon & swri_geometry_util::Polygon::operator= ( const Polygon other)

Definition at line 55 of file polygon.cpp.

bool swri_geometry_util::Polygon::VertexInPolygon ( Vertex  vertex)

Definition at line 95 of file polygon.cpp.

Member Data Documentation

int swri_geometry_util::Polygon::_nvert
private

Definition at line 87 of file polygon.h.

PolygonD swri_geometry_util::Polygon::_shape
private

Definition at line 86 of file polygon.h.


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


swri_geometry_util
Author(s): Marc Alban
autogenerated on Tue Apr 6 2021 02:50:29