Skip to main content

make_point

Function make_point 

Source
pub fn make_point<P>(values: &[P::Scalar]) -> P
where P: PointMut + Default,
Expand description

Construct a PointMut from a slice of coordinates.

Mirrors boost::geometry::make<Point>(v0, v1, ...) from boost/geometry/algorithms/make.hpp.

§Panics

Same as crate::assign::assign_values: panics if values.len() < P::DIM.