GEOS 3.11.1
SimplePointInRing.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2005-2006 Refractions Research Inc.
7 * Copyright (C) 2001-2002 Vivid Solutions Inc.
8 *
9 * This is free software; you can redistribute and/or modify it under
10 * the terms of the GNU Lesser General Public Licence as published
11 * by the Free Software Foundation.
12 * See the COPYING file for more information.
13 *
14 **********************************************************************/
15
16#pragma once
17
18#include <geos/export.h>
19#include <geos/algorithm/PointInRing.h> // for inheritance
20
21// Forward declarations
22namespace geos {
23namespace geom {
24class Coordinate;
25class LinearRing;
26class CoordinateSequence;
27}
28}
29
30namespace geos {
31namespace algorithm { // geos::algorithm
32
33class GEOS_DLL SimplePointInRing: public PointInRing {
34public:
35 SimplePointInRing(geom::LinearRing* ring);
36 ~SimplePointInRing() override = default;
37 bool isInside(const geom::Coordinate& pt) override;
38private:
39 const geom::CoordinateSequence* pts;
40};
41
42} // namespace geos::algorithm
43} // namespace geos
44
Basic namespace for all GEOS functionalities.
Definition: geos.h:39