make

# make: construct geometries

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

Construct a geometry.

It does not work with array-point types, like int[2]

Geometry

Any type fulfilling a Geometry Concept

Type

numerical type (int, double, ttmath, ...) to specify the coordinates

c1

First coordinate (usually x-coordinate)

c2

Second coordinate (usually y-coordinate)

The constructed geometry, here: a 2D point

2 coordinate values [heading Example] [make_2d_point] [make_2d_point_output] [heading See also] \* [link geometry.reference.algorithms.assign.assign_values_3_2_coordinate_values assign]
typename Geometry
typename Type
Geometry Geometry boost::geometry::make (Type const &c1, Type const &c2, Type const &c3) make Type const & c1 Type const & c2 Type const & c3

Construct a geometry.

Geometry

Any type fulfilling a Geometry Concept

Type

numerical type (int, double, ttmath, ...) to specify the coordinates

c1

First coordinate (usually x-coordinate)

c2

Second coordinate (usually y-coordinate)

c3

Third coordinate (usually z-coordinate)

The constructed geometry, here: a 3D point

3 coordinate values [heading Example] [make_3d_point] [make_3d_point_output] [heading See also] \* [link geometry.reference.algorithms.assign.assign_values_4_3_coordinate_values assign]
typename Geometry
Geometry Geometry boost::geometry::make_inverse () 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. Geometry

Any type fulfilling a Geometry Concept

The constructed geometry, here: a box

[heading Example] [make_inverse] [make_inverse_output] [heading See also] \* [link geometry.reference.algorithms.assign.assign_inverse assign_inverse]
typename Geometry
Geometry Geometry boost::geometry::make_zero () 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 Geometry

Any type fulfilling a Geometry Concept

The constructed and zero-initialized geometry