GEOS  3.9.1dev
Public Member Functions | Public Attributes | List of all members
geos::geomgraph::EdgeIntersection Class Reference

Represents a point on an edge which intersects with another edge. More...

#include <EdgeIntersection.h>

Collaboration diagram for geos::geomgraph::EdgeIntersection:
[legend]

Public Member Functions

 EdgeIntersection (const geom::Coordinate &newCoord, size_t newSegmentIndex, double newDist)
 
bool isEndPoint (size_t maxSegmentIndex) const
 
const geom::CoordinategetCoordinate () const
 
size_t getSegmentIndex () const
 
double getDistance () const
 
bool operator== (const EdgeIntersection &other) const
 

Public Attributes

geom::Coordinate coord
 
double dist
 
size_t segmentIndex
 

Detailed Description

Represents a point on an edge which intersects with another edge.

The intersection may either be a single point, or a line segment (in which case this point is the start of the line segment) The intersection point must be precise.

Definition at line 45 of file EdgeIntersection.h.

Constructor & Destructor Documentation

geos::geomgraph::EdgeIntersection::EdgeIntersection ( const geom::Coordinate newCoord,
size_t  newSegmentIndex,
double  newDist 
)
inline

Definition at line 57 of file EdgeIntersection.h.

Member Function Documentation

const geom::Coordinate& geos::geomgraph::EdgeIntersection::getCoordinate ( ) const
inline

Definition at line 78 of file EdgeIntersection.h.

double geos::geomgraph::EdgeIntersection::getDistance ( ) const
inline

Definition at line 90 of file EdgeIntersection.h.

size_t geos::geomgraph::EdgeIntersection::getSegmentIndex ( ) const
inline

Definition at line 84 of file EdgeIntersection.h.

bool geos::geomgraph::EdgeIntersection::isEndPoint ( size_t  maxSegmentIndex) const
inline

Definition at line 66 of file EdgeIntersection.h.

bool geos::geomgraph::EdgeIntersection::operator== ( const EdgeIntersection other) const
inline

Definition at line 95 of file EdgeIntersection.h.

References dist, and segmentIndex.

Member Data Documentation

geom::Coordinate geos::geomgraph::EdgeIntersection::coord

Definition at line 49 of file EdgeIntersection.h.

Referenced by geos::geomgraph::operator<<().

double geos::geomgraph::EdgeIntersection::dist
size_t geos::geomgraph::EdgeIntersection::segmentIndex

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