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

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

Approximate a shape with a bunch of points.

Associated Types

type Iter: Iterator<Item = Vector>

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<'a, A: Approximate + ?Sized> Approximate for &'a A[src]

type Iter = A::Iter

Loading content...


impl Approximate for Arc[src]

type Iter = ApproximatedArc

impl Approximate for Line[src]

type Iter = Chain<Once<Vector>, Once<Vector>>

impl Approximate for Point[src]

type Iter = Once<Vector>

Loading content...