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

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext
disjoint (with strategy)

Checks if two geometries are disjoint.

Synopsis

template<typename Geometry1, typename Geometry2, typename Strategy>
bool disjoint(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 Disjoint Strategy Concept

strategy

The strategy which will be used for disjoint calculations

Returns

Returns true if two geometries are disjoint

Header

Either

#include <boost/geometry.hpp>

Or

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

Conformance

The function disjoint implements function Disjoint from the OGC Simple Feature Specification.

Supported geometries

Point

Segment

Box

Linestring

Ring

Polygon

MultiPoint

MultiLinestring

MultiPolygon

Variant

Point

ok

ok

ok

ok

ok

ok

ok

ok

ok

ok

Segment

ok

ok

ok

ok

ok

ok

ok

ok

ok

ok

Box

ok

ok

ok

ok

ok

ok

ok

ok

ok

ok

Linestring

ok

ok

ok

ok

ok

ok

ok

ok

ok

ok

Ring

ok

ok

ok

ok

ok

ok

nyi

ok

ok

ok

Polygon

ok

ok

ok

ok

ok

ok

nyi

ok

ok

ok

MultiPoint

ok

ok

ok

ok

nyi

nyi

ok

ok

nyi

nyi

MultiLinestring

ok

ok

ok

ok

ok

ok

ok

ok

ok

ok

MultiPolygon

ok

ok

ok

ok

ok

ok

nyi

ok

ok

ok

Variant

ok

ok

ok

ok

ok

ok

nyi

ok

ok

ok


PrevUpHomeNext