Skip to main content

Module make

Module make 

Source
Expand description

Construct a Point / Box / Segment from a coordinate slice.

Mirrors boost::geometry::make<P>(values...) and its make<Box> / make<Segment> siblings from boost/geometry/algorithms/make.hpp. The counterpart of crate::assign::assign_values: same contract but returns a fresh value instead of writing into an existing one. The Boost overloads are variadic; the Rust port takes a slice for arity-agnostic ergonomics (see crate::assign for the trade-off).

Functions§

make_box
Construct a Box from two corner coordinate slices.
make_point
Construct a PointMut from a slice of coordinates.
make_segment
Construct a Segment from two endpoint coordinate slices.