GEOS 3.11.1
|
Functions to compute distance between basic geometric structures. More...
#include <Distance.h>
Static Public Member Functions | |
static double | segmentToSegment (const geom::Coordinate &A, const geom::Coordinate &B, const geom::Coordinate &C, const geom::Coordinate &D) |
static double | pointToSegmentString (const geom::Coordinate &p, const geom::CoordinateSequence *seq) |
static double | pointToSegment (const geom::Coordinate &p, const geom::Coordinate &A, const geom::Coordinate &B) |
static double | pointToLinePerpendicular (const geom::Coordinate &p, const geom::Coordinate &A, const geom::Coordinate &B) |
Functions to compute distance between basic geometric structures.
|
static |
Computes the perpendicular distance from a point p to the (infinite) line containing the points AB
p | the point to compute the distance for |
A | one point of the line |
B | another point of the line (must be different to A) |
Referenced by geos::geom::LineSegment::distancePerpendicular().
|
static |
Computes the distance from a point p to a line segment AB
Note: NON-ROBUST!
p | the point to compute the distance for |
A | one point of the line |
B | another point of the line (must be different to A) |
Referenced by geos::geom::LineSegment::distance().
|
static |
Computes the distance from a point to a sequence of line segments.
p | a point |
seq | a sequence of contiguous line segments defined by their vertices |
|
static |
Computes the distance from a line segment AB to a line segment CD
Note: NON-ROBUST!
A | a point of one line |
B | the second point of (must be different to A) |
C | one point of the line |
D | another point of the line (must be different to A) |
Referenced by geos::geom::LineSegment::distance().