GEOS  3.9.1dev
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
geos::operation::overlayng::EdgeKey Class Reference

#include <EdgeKey.h>

Public Member Functions

 EdgeKey (const Edge *edge)
 
int compareTo (const EdgeKey *ek) const
 
bool equals (const EdgeKey *ek) const
 

Private Member Functions

void initPoints (const Edge *edge)
 
void init (const geom::Coordinate &p0, const geom::Coordinate &p1)
 

Private Attributes

double p0x
 
double p0y
 
double p1x
 
double p1y
 

Friends

bool operator< (const EdgeKey &ek1, const EdgeKey &ek2)
 
bool operator== (const EdgeKey &ek1, const EdgeKey &ek2)
 

Detailed Description

A key for sorting and comparing edges in a noded arrangement. Relies on the fact that in a correctly noded arrangement edges are identical (up to direction) iff they have their first segment in common.

Author
mdavis

Definition at line 50 of file EdgeKey.h.

Constructor & Destructor Documentation

geos::operation::overlayng::EdgeKey::EdgeKey ( const Edge edge)

Member Function Documentation

int geos::operation::overlayng::EdgeKey::compareTo ( const EdgeKey ek) const
bool geos::operation::overlayng::EdgeKey::equals ( const EdgeKey ek) const
void geos::operation::overlayng::EdgeKey::init ( const geom::Coordinate p0,
const geom::Coordinate p1 
)
private
void geos::operation::overlayng::EdgeKey::initPoints ( const Edge edge)
private

Friends And Related Function Documentation

bool operator< ( const EdgeKey ek1,
const EdgeKey ek2 
)
friend
bool operator== ( const EdgeKey ek1,
const EdgeKey ek2 
)
friend

Member Data Documentation

double geos::operation::overlayng::EdgeKey::p0x
private

Definition at line 55 of file EdgeKey.h.

double geos::operation::overlayng::EdgeKey::p0y
private

Definition at line 56 of file EdgeKey.h.

double geos::operation::overlayng::EdgeKey::p1x
private

Definition at line 57 of file EdgeKey.h.

double geos::operation::overlayng::EdgeKey::p1y
private

Definition at line 58 of file EdgeKey.h.


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