GEOS 3.10.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#ifndef GEOS_ALGORITHM_SIMPLEPOINTINRING_H
17#define GEOS_ALGORITHM_SIMPLEPOINTINRING_H
18
19#include <geos/export.h>
20#include <geos/algorithm/PointInRing.h> // for inheritance
21
22// Forward declarations
23namespace geos {
24namespace geom {
25class Coordinate;
26class LinearRing;
27class CoordinateSequence;
28}
29}
30
31namespace geos {
32namespace algorithm { // geos::algorithm
33
34class GEOS_DLL SimplePointInRing: public PointInRing {
35public:
36 SimplePointInRing(geom::LinearRing* ring);
37 ~SimplePointInRing() override = default;
38 bool isInside(const geom::Coordinate& pt) override;
39private:
40 const geom::CoordinateSequence* pts;
41};
42
43} // namespace geos::algorithm
44} // namespace geos
45
46
47#endif // GEOS_ALGORITHM_SIMPLEPOINTINRING_H
48
Basic namespace for all GEOS functionalities.
Definition: geos.h:40