DistanceToPoint.h
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2009 Sandro Santilli <strk@kbt.io>
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesser General Public Licence as published
* by the Free Software Foundation.
* See the COPYING file for more information.
*
**********************************************************************
*
* Last port: algorithm/distance/DistanceToPoint.java 1.1 (JTS-1.9)
*
**********************************************************************/
#pragma once
#include <geos/geom/LineSegment.h> // for composition
namespace geos {
namespace algorithm {
namespace distance {
class PointPairDistance;
}
}
namespace geom {
class Geometry;
class Coordinate;
class LineString;
class Polygon;
}
}
namespace geos {
namespace algorithm { // geos::algorithm
namespace distance { // geos::algorithm::distance
class DistanceToPoint {
public:
DistanceToPoint() {}
static void computeDistance(const geom::Geometry& geom,
const geom::CoordinateXY& pt,
PointPairDistance& ptDist);
static void computeDistance(const geom::LineString& geom,
const geom::CoordinateXY& pt,
PointPairDistance& ptDist);
static void computeDistance(const geom::LineSegment& geom,
const geom::CoordinateXY& pt,
PointPairDistance& ptDist);
static void computeDistance(const geom::Polygon& geom,
const geom::CoordinateXY& pt,
PointPairDistance& ptDist);
};
} // geos::algorithm::distance
} // geos::algorithm
} // geos
geos::algorithm::distance::PointPairDistance
Definition PointPairDistance.h:36
geos::geom::Coordinate
Coordinate is the lightweight class used to store coordinates.
Definition Coordinate.h:217
geos::geom::Geometry
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:196
geos::geom::LineSegment
Definition LineSegment.h:61
geos::geom::LineString
Definition LineString.h:66
geos::geom::Polygon
Represents a linear polygon, which may include holes.
Definition Polygon.h:61
geos::algorithm::distance
Classes to compute distance metrics between geometries.
Definition DiscreteFrechetDistance.h:40
geos::algorithm
Contains classes and interfaces implementing fundamental computational geometry algorithms.
Definition Angle.h:32
geos::geom
Definition Angle.h:26
geos
Basic namespace for all GEOS functionalities.
Definition geos.h:38