| Home | Libraries | People | FAQ | More

##### intersects(Geometry const &)

Generate `intersects()` predicate.

###### Description

Generate a predicate defining Value and Geometry relationship. With this predicate query returns indexed Values that intersect passed Geometry. Value is returned by the query if ``bg::intersects(Indexable, Geometry)`` returns ``true``.

###### Synopsis

    template<typename Geometry>
    unspecified intersects(Geometry const & g)

###### Template parameter(s)

Parameter | Description
--- | ---
`Geometry` | The Geometry type.

###### Parameter(s)

Type | Name | Description
--- | --- | ---
`Geometry const &` | `g` | The Geometry object.

###### Example

    bgi::query(spatial_index, bgi::intersects(box), std::back_inserter(result));
    bgi::query(spatial_index, bgi::intersects(ring), std::back_inserter(result));
    bgi::query(spatial_index, bgi::intersects(polygon), std::back_inserter(result));