Length.h
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2018 Paul Ramsey <pramsey@cleverlephant.ca>
*
* 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/Length.java @ 2017-09-04
*
**********************************************************************/
#pragma once
#include <geos/export.h>
#include <geos/geom/Coordinate.h>
#include <geos/geom/CoordinateSequence.h>
#include <vector>
namespace geos {
namespace algorithm { // geos::algorithm
class GEOS_DLL Length {
public:
static double ofLine(const geom::CoordinateSequence* ring);
static double ofLine(const std::vector<geom::CoordinateXY>& ring);
};
} // namespace geos::algorithm
} // namespace geos
geos::algorithm::Length
Functions for computing length.
Definition Length.h:35
geos::algorithm::Length::ofLine
static double ofLine(const std::vector< geom::CoordinateXY > &ring)
geos::algorithm::Length::ofLine
static double ofLine(const geom::CoordinateSequence *ring)
geos::geom::CoordinateSequence
The internal representation of a list of coordinates inside a Geometry.
Definition CoordinateSequence.h:56
geos::algorithm
Contains classes and interfaces implementing fundamental computational geometry algorithms.
Definition Angle.h:32
geos
Basic namespace for all GEOS functionalities.
Definition geos.h:38