⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 geometrylocation.cpp

📁 在Linux下做的QuadTree的程序
💻 CPP
字号:
/********************************************************************** * $Id: GeometryLocation.cpp 1820 2006-09-06 16:54:23Z mloskot $ * * GEOS - Geometry Engine Open Source * http://geos.refractions.net * * Copyright (C) 2006 Refractions Research Inc. * Copyright (C) 2001-2002 Vivid Solutions Inc. * * This is free software; you can redistribute and/or modify it under * the terms of the GNU Lesser General Public Licence as published * by the Free Software Foundation.  * See the COPYING file for more information. * **********************************************************************/#include <geos/operation/distance/GeometryLocation.h>using namespace geos::geom;namespace geos {namespace operation { // geos.operationnamespace distance { // geos.operation.distance/*** Constructs a GeometryLocation specifying a point on a geometry, as well as the * segment that the point is on (or INSIDE_AREA if the point is not on a segment).*/GeometryLocation::GeometryLocation(const Geometry *newComponent, int newSegIndex, const Coordinate &newPt){	component = newComponent;	segIndex = newSegIndex;	pt = newPt;}/*** Constructs a GeometryLocation specifying a point inside an area geometry.*/  GeometryLocation::GeometryLocation(const Geometry *newComponent, const Coordinate &newPt){	component = newComponent;	segIndex = INSIDE_AREA;	pt = newPt;}/*** Returns the geometry associated with this location.*/const Geometry* GeometryLocation::getGeometryComponent() { 	return component;}/*** Returns the segment index for this location. If the location is inside an* area, the index will have the value INSIDE_AREA;** @return the segment index for the location, or INSIDE_AREA*/intGeometryLocation::getSegmentIndex(){ 	return segIndex;}/*** Returns the location.*/Coordinate&GeometryLocation::getCoordinate(){ 	return pt;}bool GeometryLocation::isInsideArea() { 	return segIndex == INSIDE_AREA;}} // namespace geos.operation.distance} // namespace geos.operation} // namespace geos/********************************************************************** * $Log$ * Revision 1.6  2006/03/21 17:55:01  strk * opDistance.h header split * **********************************************************************/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -