[][src]Trait arcs::algorithms::Approximate

pub trait Approximate<Space> where
    <Self::Iter as Iterator>::Item == Point2D<f64, Space>, 
{ type Iter: Iterator; fn approximate(&self, tolerance: f64) -> Self::Iter; }

Approximate a shape with a bunch of [Point2D]s.

Associated Types

type Iter: Iterator

An iterator over the approximated vertices.

Loading content...

Required methods

fn approximate(&self, tolerance: f64) -> Self::Iter

Approximate the shape, ensuring the resulting path is within tolerance units of the original.

Loading content...

Implementations on Foreign Types

impl<Space> Approximate<Space> for Point2D<f64, Space>[src]

type Iter = Once<Point2D<f64, Space>>

impl<'a, Space, A> Approximate<Space> for &'a A where
    A: Approximate<Space> + ?Sized
[src]

type Iter = <A as Approximate<Space>>::Iter

Loading content...

Implementors

impl<Space> Approximate<Space> for Arc<Space>[src]

type Iter = ApproximatedArc<Space>

impl<Space> Approximate<Space> for Line<Space>[src]

type Iter = Chain<Once<Point2D<f64, Space>>, Once<Point2D<f64, Space>>>

Loading content...