GEOS
3.7.1
include
geos
algorithm
distance
PointPairDistance.h
1
/**********************************************************************
2
*
3
* GEOS - Geometry Engine Open Source
4
* http://geos.osgeo.org
5
*
6
* Copyright (C) 2009 Sandro Santilli <strk@kbt.io>
7
*
8
* This is free software; you can redistribute and/or modify it under
9
* the terms of the GNU Lesser General Public Licence as published
10
* by the Free Software Foundation.
11
* See the COPYING file for more information.
12
*
13
**********************************************************************
14
*
15
* Last port: algorithm/distance/PointPairDistance.java 1.1 (JTS-1.9)
16
*
17
**********************************************************************/
18
19
#ifndef GEOS_ALGORITHM_DISTANCE_POINTPAIRDISTANCE_H
20
#define GEOS_ALGORITHM_DISTANCE_POINTPAIRDISTANCE_H
21
22
#include <geos/platform.h>
// for DoubleNotANumber
23
#include <geos/geom/Coordinate.h>
// for inlines
24
25
#include <vector>
// for composition
26
#include <cassert>
27
28
namespace
geos
{
29
namespace
algorithm {
// geos::algorithm
30
namespace
distance {
// geos::algorithm::distance
31
37
class
PointPairDistance
38
{
39
public
:
40
41
PointPairDistance
()
42
:
43
pt(2),