Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext
crosses (with strategy)

Checks if two geometries crosses.

Synopsis

template<typename Geometry1, typename Geometry2, typename Strategy>
bool crosses(Geometry1 const & geometry1, Geometry2 const & geometry2, Strategy const & strategy)

Parameters

Type

Concept

Name

Description

Geometry1 const &

Any type fulfilling a Geometry Concept

geometry1

A model of the specified concept

Geometry2 const &

Any type fulfilling a Geometry Concept

geometry2

A model of the specified concept

Strategy const &

Any type fulfilling a Crosses Strategy Concept

strategy

The strategy which will be used for crosses calculations

Returns

Returns true if two geometries crosses

Header

Either

#include <boost/geometry.hpp>

Or

#include <boost/geometry/algorithms/crosses.hpp>

Conformance

The function crosses implements function Crosses from the OGC Simple Feature Specification.

Supported geometries

Point

Segment

Box

Linestring

Ring

Polygon

MultiPoint

MultiLinestring

MultiPolygon

Variant

Point

nyi

nyi

nyi

ok

ok

ok

nyi

ok

ok

ok

Segment

nyi

nyi

nyi

nyi

nyi

nyi

nyi

nyi

nyi

nyi

Box

nyi

nyi

nyi

nyi

nyi

nyi

nyi

nyi

nyi

nyi

Linestring

ok

nyi

nyi

ok

nyi

nyi

nyi

ok

nyi

nyi

Ring

ok

nyi

nyi

ok

nyi

nyi

nyi

ok

nyi

nyi

Polygon

ok

nyi

nyi

ok

nyi

nyi

nyi

ok

nyi

nyi

MultiPoint

nyi

nyi

nyi

nyi

nyi

nyi

nyi

nyi

nyi

nyi

MultiLinestring

ok

nyi

nyi

ok

nyi

nyi

nyi

ok

nyi

nyi

MultiPolygon

ok

nyi

nyi

ok

nyi

nyi

nyi

ok

nyi

nyi

Variant

nyi

nyi

nyi

nyi

nyi

nyi

nyi

nyi

nyi

nyi


PrevUpHomeNext