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

◆ Polygon() [1/3]

swri_geometry_util::Polygon::Polygon ( )

Definition at line 35 of file polygon.cpp.

◆ Polygon() [2/3]

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

Definition at line 42 of file polygon.cpp.

◆ Polygon() [3/3]

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

Definition at line 80 of file polygon.cpp.

◆ ~Polygon()

swri_geometry_util::Polygon::~Polygon ( )

Definition at line 207 of file polygon.cpp.

Member Function Documentation

◆ FindLineIntersectLine()

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

Definition at line 142 of file polygon.cpp.

◆ GetNumVerticies()

int swri_geometry_util::Polygon::GetNumVerticies ( )

Definition at line 201 of file polygon.cpp.

◆ GetXVerticie()

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

Definition at line 190 of file polygon.cpp.

◆ GetXVerticies()

double * swri_geometry_util::Polygon::GetXVerticies ( )

Definition at line 178 of file polygon.cpp.

◆ GetYVerticie()

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

Definition at line 196 of file polygon.cpp.

◆ GetYVerticies()

double * swri_geometry_util::Polygon::GetYVerticies ( )

Definition at line 184 of file polygon.cpp.

◆ LineOverlapsPolygon()

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

Definition at line 111 of file polygon.cpp.

◆ operator=()

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

Definition at line 55 of file polygon.cpp.

◆ VertexInPolygon()

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

Definition at line 95 of file polygon.cpp.

Member Data Documentation

◆ _nvert

int swri_geometry_util::Polygon::_nvert
private

Definition at line 87 of file polygon.h.

◆ _shape

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 Sat Jan 21 2023 03:13:10