GEOS  3.13.0dev
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
22 namespace geos {
23 namespace geom {
24 class Coordinate;
25 class LinearRing;
26 class CoordinateSequence;
27 }
28 }
29 
30 namespace geos {
31 namespace algorithm { // geos::algorithm
32 
33 class GEOS_DLL SimplePointInRing: public PointInRing {
34 public:
35  SimplePointInRing(geom::LinearRing* ring);
36  ~SimplePointInRing() override = default;
37  bool isInside(const geom::Coordinate& pt) override;
38 private:
39  const geom::CoordinateSequence* pts;
40 };
41 
42 } // namespace geos::algorithm
43 } // namespace geos
44 
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25