Complete Note#1 in the http://wiki.osgeo.org/wiki/GEOS_Provenance_Review to get out...
[geos.git] / src / geom / prep / PreparedPoint.cpp
blob4b4139782651ec87170bc9dcc86f7c83589cb659
1 /**********************************************************************
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
6 * Copyright (C) 2001-2002 Vivid Solutions Inc.
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.
13 **********************************************************************
15 * Last port: geom/prep/PreparedPoint.java rev. 1.2 (JTS-1.10)
17 **********************************************************************/
20 #include <geos/geom/prep/PreparedPoint.h>
22 namespace geos {
23 namespace geom { // geos.geom
24 namespace prep { // geos.geom.prep
26 bool
27 PreparedPoint::intersects(const geom::Geometry* g)
29 if (! envelopesIntersect( g)) return false;
31 // This avoids computing topology for the test geometry
32 return isAnyTargetComponentInTest( g);
35 } // namespace geos.geom.prep
36 } // namespace geos.geom
37 } // namespace geos
39 /**********************************************************************
40 * $Log$
42 **********************************************************************/