GEOS 3.15.0dev
PerimeterDistance.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2018-2025 ISciences, LLC
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#pragma once
16
17#include <geos/export.h>
18
19namespace geos::geom {
20 class CoordinateXY;
21 class Envelope;
22}
23
24namespace geos::operation::grid {
25
26class GEOS_DLL PerimeterDistance {
27 public:
28
33 static double
34 getPerimeterDistance(const geom::Envelope& env, const geom::CoordinateXY& c);
35
36 static double
37 getPerimeterDistance(double xmin, double ymin, double xmax, double ymax, double x, double y);
38
44 static double
45 getPerimeterDistanceCCW(double measure1, double measure2, double perimeter);
46
47};
48
49}
Definition Angle.h:26