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>
23 namespace geom
{ // geos.geom
24 namespace prep
{ // geos.geom.prep
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
39 /**********************************************************************
42 **********************************************************************/