Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
AbstractPoly Class Referenceabstract

#include <AbstractPoly.h>

Inheritance diagram for AbstractPoly:
[legend]

Public Member Functions

virtual bool around (const Position &p, double offset=0) const =0
 Returns whether the AbstractPoly the given coordinate.
 
virtual bool crosses (const Position &p1, const Position &p2) const =0
 Returns whether the AbstractPoly crosses the given line.
 
virtual bool overlapsWith (const AbstractPoly &poly, double offset=0) const =0
 Returns whether the AbstractPoly overlaps with the given polygon.
 
virtual bool partialWithin (const AbstractPoly &poly, double offset=0) const =0
 Returns whether the AbstractPoly is partially within the given polygon.
 
virtual ~AbstractPoly ()
 destructor
 

Detailed Description

Definition at line 33 of file AbstractPoly.h.

Constructor & Destructor Documentation

◆ ~AbstractPoly()

virtual AbstractPoly::~AbstractPoly ( )
inlinevirtual

destructor

Definition at line 36 of file AbstractPoly.h.

Member Function Documentation

◆ around()

virtual bool AbstractPoly::around ( const Position p,
double  offset = 0 
) const
pure virtual

Returns whether the AbstractPoly the given coordinate.

Implemented in Boundary, and PositionVector.

Referenced by Boundary::partialWithin(), and PositionVector::partialWithin().

Here is the caller graph for this function:

◆ crosses()

virtual bool AbstractPoly::crosses ( const Position p1,
const Position p2 
) const
pure virtual

Returns whether the AbstractPoly crosses the given line.

Implemented in Boundary, and PositionVector.

Referenced by Boundary::overlapsWith(), and PositionVector::overlapsWith().

Here is the caller graph for this function:

◆ overlapsWith()

virtual bool AbstractPoly::overlapsWith ( const AbstractPoly poly,
double  offset = 0 
) const
pure virtual

Returns whether the AbstractPoly overlaps with the given polygon.

Implemented in Boundary, and PositionVector.

◆ partialWithin()

virtual bool AbstractPoly::partialWithin ( const AbstractPoly poly,
double  offset = 0 
) const
pure virtual

Returns whether the AbstractPoly is partially within the given polygon.

Implemented in Boundary, and PositionVector.

Referenced by Boundary::overlapsWith(), and PositionVector::overlapsWith().

Here is the caller graph for this function:

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