Skip to main content

map_coords

Function map_coords 

Source
pub fn map_coords<G, Q, F>(geometry: &G, map: F) -> G::Output
where G: MapCoords<Q>, Q: PointTrait, F: FnMut(&G::Point) -> Q,
Expand description

Map every point in a stock geometry into a newly constructed geometry.

The point closure may change the scalar or coordinate-system type while the geometry’s topology and ring parameters are preserved.