Skip to main content

DensifyStrategy

Trait DensifyStrategy 

Source
pub trait DensifyStrategy<G> {
    type Output;

    // Required method
    fn densify(&self, g: &G, max_distance: f64) -> Self::Output;
}
Expand description

A strategy for densifying a geometry — inserting intermediate vertices so no segment exceeds max_distance.

Mirrors the per-coordinate-system densify-strategy concept from boost/geometry/strategies/densify.hpp. densify returns a new geometry of the same kind.

Required Associated Types§

Source

type Output

The densified geometry type.

Required Methods§

Source

fn densify(&self, g: &G, max_distance: f64) -> Self::Output

Return a densified copy of g where every output segment is no longer than max_distance.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§