assign

# assign: assign values to geometries

typename Geometry1
typename Geometry2
void void boost::geometry::assign (Geometry1 &geometry1, Geometry2 const &geometry2) assign Geometry1 & geometry1 Geometry2 const & geometry2

Assigns one geometry to another geometry.

The assign algorithm assigns one geometry, e.g. a BOX, to another geometry, e.g. a RING. This only works if it is possible and applicable.

Geometry1

Any type fulfilling a Geometry Concept

Geometry2

Any type fulfilling a Geometry Concept

geometry1

A model of the specified concept (target)

geometry2

A model of the specified concept (source)

[heading Example] [assign] [assign_output] [heading See also] \* [link geometry.reference.algorithms.convert convert]
typename Geometry
void void boost::geometry::assign_inverse (Geometry &geometry) assign_inverse Geometry & geometry

assign to a box inverse infinite

The assign_inverse function initialize a 2D or 3D box with large coordinates, the min corner is very large, the max corner is very small. This is a convenient starting point to collect the minimum bounding box of a geometry.

Geometry

Any type fulfilling a Geometry Concept

geometry

A model of the specified concept

[heading Example] [assign_inverse] [assign_inverse_output] [heading See also] \* [link geometry.reference.algorithms.make.make_inverse make_inverse]
typename Geometry
typename Range
void void boost::geometry::assign_points (Geometry &geometry, Range const &range) assign_points Geometry & geometry Range const & range

Assign a range of points to a linestring, ring or polygon.

The point-type of the range might be different from the point-type of the geometry

Geometry

Any type fulfilling a Geometry Concept

Range

Any type fulfilling a Range Concept where it range_value type fulfills the Point Concept

geometry

A model of the specified concept

range

A range containg points fulfilling range and point concepts

[heading Notes] [note Assign automatically clears the geometry before assigning (use append if you don't want that)] [heading Example] [assign_points] [assign_points_output] [heading See also] \* [link geometry.reference.algorithms.append append]
typename Geometry
typename Type
void void boost::geometry::assign_values (Geometry &geometry, Type const &c1, Type const &c2) assign_values Geometry & geometry Type const & c1 Type const & c2

Assign two coordinates to a geometry (usually a 2D point)

Geometry

Any type fulfilling a Geometry Concept

Type

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

geometry

A model of the specified concept

c1

First coordinate (usually x-coordinate)

c2

Second coordinate (usually y-coordinate)

2 coordinate values [heading Example] [assign_2d_point] [assign_2d_point_output] [heading See also] \* [link geometry.reference.algorithms.make.make_2_2_coordinate_values make]
typename Geometry
typename Type
void void boost::geometry::assign_values (Geometry &geometry, Type const &c1, Type const &c2, Type const &c3) assign_values Geometry & geometry Type const & c1 Type const & c2 Type const & c3

Assign three values to a geometry (usually a 3D point)

Geometry

Any type fulfilling a Geometry Concept

Type

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

geometry

A model of the specified concept

c1

First coordinate (usually x-coordinate)

c2

Second coordinate (usually y-coordinate)

c3

Third coordinate (usually z-coordinate)

3 coordinate values [heading Example] [assign_3d_point] [assign_3d_point_output] [heading See also] \* [link geometry.reference.algorithms.make.make_3_3_coordinate_values make]
typename Geometry
typename Type
void void boost::geometry::assign_values (Geometry &geometry, Type const &c1, Type const &c2, Type const &c3, Type const &c4) assign_values Geometry & geometry Type const & c1 Type const & c2 Type const & c3 Type const & c4

Assign four values to a geometry (usually a box or segment)

Geometry

Any type fulfilling a Geometry Concept

Type

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

geometry

A model of the specified concept

c1

First coordinate (usually x1)

c2

Second coordinate (usually y1)

c3

Third coordinate (usually x2)

c4

Fourth coordinate (usually y2)

4 coordinate values
typename Geometry
void void boost::geometry::assign_zero (Geometry &geometry) assign_zero Geometry & geometry

assign zero values to a box, point

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

Any type fulfilling a Geometry Concept

geometry

A model of the specified concept