Fishnet 2.0.1
Framework for Graph-Based Analysis of GIS Vector Data
Loading...
Searching...
No Matches
PolygonDistance.hpp File Reference
Include dependency graph for PolygonDistance.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  fishnet
 
namespace  fishnet::geometry
 

Functions

static Vec2DReal fishnet::geometry::closestPointOnSegment (ISegment auto const &segment, IPoint auto const &point) noexcept
 Compute the point on the segment, closest to the query point.
 
static std::pair< Vec2DReal, Vec2DReal > fishnet::geometry::closestPoints (ISegment auto const &lhs, ISegment auto const &rhs) noexcept
 Compute the pair of nearest points for two segments.
 
static std::pair< Vec2DReal, Vec2DReal > fishnet::geometry::closestPoints (const IRing auto &lhs, const IRing auto &rhs) noexcept
 Ring overload to compute the closest pair of points This function uses the segment on the boundary of the shape to compute the closest pair of points, assuming that the rings do not contain each other.
 
template<Shape S, Shape T, typename = std::enable_if_t<IPolygon<S> || IPolygon<T>>>
static std::pair< Vec2DReal, Vec2DReal > fishnet::geometry::closestPoints (const S &lhs, const T &rhs) noexcept
 Overload for polygons to compute the closest pair of points.
 
static std::pair< Vec2DReal, Vec2DReal > fishnet::geometry::closestPoints (const IMultiPolygon auto &lhs, const IMultiPolygon auto &rhs) noexcept
 Overload for multiPolygons to compute the closest pair of points.
 
static fishnet::math::DEFAULT_FLOATING_POINT fishnet::geometry::shapeDistance (Shape auto const &lhs, Shape auto const &rhs, util::BiFunction< Vec2DReal, Vec2DReal, fishnet::math::DEFAULT_FLOATING_POINT > auto const &distanceFunction) noexcept
 Compute the distance between two shapes, with custom distance function.
 
static fishnet::math::DEFAULT_FLOATING_POINT fishnet::geometry::shapeDistance (Shape auto const &lhs, Shape auto const &rhs) noexcept
 Default shapeDistance overload.