예제 #1
0
 bool operator!=(const point_2d &that) const {
   return (this->x_ != that.x()) || (this->y_ != that.y());
 }
예제 #2
0
파일: converter.hpp 프로젝트: CCJY/engine-1
	/**
	 * Converts a Point of Cartesian coordinates into a SpatialIndex::Point
	 * @param p The point to convert
	 * @return The converted point
	 */
	static SpatialIndex::Point convert_point_2d(const point_2d& p) {

		double p_coords[] = {p.x(), p.y()};

		return SpatialIndex::Point(p_coords,m_dimension);
	}
예제 #3
0
 bool operator==(const point_2d &that) const {
   return (this->x_ == that.x()) && (this->y_ == that.y());
 }