PerimeterDistance.h
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2018-2025 ISciences, LLC
*
* 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.
*
**********************************************************************/
#pragma once
#include <geos/export.h>
namespace geos::geom {
class CoordinateXY;
class Envelope;
}
namespace geos::operation::grid {
class GEOS_DLL PerimeterDistance {
public:
static double
getPerimeterDistance(const geom::Envelope& env, const geom::CoordinateXY& c);
static double
getPerimeterDistance(double xmin, double ymin, double xmax, double ymax, double x, double y);
static double
getPerimeterDistanceCCW(double measure1, double measure2, double perimeter);
};
}
geos::geom::Envelope
An Envelope defines a rectangulare region of the 2D coordinate plane.
Definition Envelope.h:59
geos::geom
Definition Angle.h:26