1 /**********************************************************************
4 * GEOS - Geometry Engine Open Source
5 * http://geos.refractions.net
7 * Copyright (C) 2005-2006 Refractions Research Inc.
8 * Copyright (C) 2001-2002 Vivid Solutions Inc.
10 * This is free software; you can redistribute and/or modify it under
11 * the terms of the GNU Lesser General Public Licence as published
12 * by the Free Software Foundation.
13 * See the COPYING file for more information.
15 **********************************************************************/
17 #include <geos/algorithm/SimplePointInRing.h>
18 #include <geos/algorithm/CGAlgorithms.h>
19 #include <geos/geom/LinearRing.h>
21 // Forward declarations
29 namespace algorithm
{ // geos.algorithm
31 SimplePointInRing::SimplePointInRing(geom::LinearRing
*ring
){
32 pts
=ring
->getCoordinatesRO();
35 SimplePointInRing::~SimplePointInRing(){
38 bool SimplePointInRing::isInside(const geom::Coordinate
& pt
){
39 return CGAlgorithms::isPointInRing(pt
,pts
);
42 } // namespace geos.algorithm
45 /**********************************************************************
47 * Revision 1.18 2006/03/21 11:12:23 strk
48 * Cleanups: headers inclusion and Log section
50 * Revision 1.17 2006/03/09 16:46:46 strk
51 * geos::geom namespace definition, first pass at headers split
53 * Revision 1.16 2006/02/19 19:46:49 strk
54 * Packages <-> namespaces mapping for most GEOS internal code (uncomplete, but working). Dir-level libs for index/ subdirs.
55 **********************************************************************/