Coverage Report

Created: 2026-07-16 06:39

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/geos/include/geos/geom/prep/PreparedPoint.h
Line
Count
Source
1
/**********************************************************************
2
 *
3
 * GEOS - Geometry Engine Open Source
4
 * http://geos.osgeo.org
5
 *
6
 * Copyright (C) 2006 Refractions Research Inc.
7
 *
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.
12
 *
13
 *
14
 **********************************************************************
15
 *
16
 * Last port: geom/prep/PreparedPoint.java rev. 1.2 (JTS-1.10)
17
 *
18
 **********************************************************************/
19
20
#pragma once
21
22
#include <geos/geom/prep/BasicPreparedGeometry.h> // for inheritance
23
24
namespace geos {
25
namespace geom { // geos::geom
26
namespace prep { // geos::geom::prep
27
28
/**
29
 * \brief
30
 * A prepared version of {@link Point} or {@link MultiPoint} geometries.
31
 *
32
 * @author Martin Davis
33
 *
34
 */
35
class PreparedPoint: public BasicPreparedGeometry {
36
private:
37
protected:
38
public:
39
    PreparedPoint(const Geometry* geom)
40
0
        : BasicPreparedGeometry(geom)
41
0
    { }
42
43
    /**
44
     * Tests whether this point intersects a {@link Geometry}.
45
     *
46
     * The optimization here is that computing topology for the test
47
     * geometry is avoided. This can be significant for large geometries.
48
     */
49
    bool intersects(const geom::Geometry* g) const override;
50
51
};
52
53
} // namespace geos::geom::prep
54
} // namespace geos::geom
55
} // namespace geos
56