Boost.Geometry    Boost C++ Libraries
Functions
make: construct geometries

Functions

template<typename Geometry , typename Type >
Geometry boost::geometry::make (Type const &c1, Type const &c2)
 Construct a geometry.
template<typename Geometry , typename Type >
Geometry boost::geometry::make (Type const &c1, Type const &c2, Type const &c3)
 Construct a geometry.
template<typename Geometry >
Geometry boost::geometry::make_inverse ()
 Construct a box with inverse infinite coordinates.
template<typename Geometry >
Geometry boost::geometry::make_zero ()
 Construct a geometry with its coordinates initialized to zero.

Function Documentation

template<typename Geometry , typename Type >
Geometry boost::geometry::make ( Type const &  c1,
Type const &  c2 
)

Construct a geometry.

Note:
It does not work with array-point types, like int[2]
Template Parameters:
GeometryAny type fulfilling a Geometry Concept
Typenumerical type (int, double, ttmath, ...) to specify the coordinates
Parameters:
c1First coordinate (usually x-coordinate)
c2Second coordinate (usually y-coordinate)
Returns:
The constructed geometry, here: a 2D point
template<typename Geometry , typename Type >
Geometry boost::geometry::make ( Type const &  c1,
Type const &  c2,
Type const &  c3 
)

Construct a geometry.

Template Parameters:
GeometryAny type fulfilling a Geometry Concept
Typenumerical type (int, double, ttmath, ...) to specify the coordinates
Parameters:
c1First coordinate (usually x-coordinate)
c2Second coordinate (usually y-coordinate)
c3Third coordinate (usually z-coordinate)
Returns:
The constructed geometry, here: a 3D point
template<typename Geometry >
Geometry boost::geometry::make_inverse ( )

Construct a box with inverse infinite coordinates.

The make_inverse function initializes a 2D or 3D box with large coordinates, the min corner is very large, the max corner is very small. This is useful e.g. in combination with the expand function, to determine the bounding box of a series of geometries.

Template Parameters:
GeometryAny type fulfilling a Geometry Concept
Returns:
The constructed geometry, here: a box
template<typename Geometry >
Geometry boost::geometry::make_zero ( )

Construct a geometry with its coordinates initialized to zero.

The make_zero function initializes a 2D or 3D point or box with coordinates of zero

Template Parameters:
GeometryAny type fulfilling a Geometry Concept
Returns:
The constructed and zero-initialized geometry

April 2, 2011

Copyright © 2007-2011 Barend Gehrels, Amsterdam, the Netherlands
Copyright © 2008-2011 Bruno Lalande, Paris, France
Copyright © 2009-2010 Mateusz Loskot, London, UK
Documentation is generated by Doxygen