[][src]Trait lyon_geom::traits::FlatteningStep

pub trait FlatteningStep: FlattenedForEach {
    fn flattening_step(&self, tolerance: Self::Scalar) -> Self::Scalar;

    fn flattened(self, tolerance: Self::Scalar) -> Flattened<Self::Scalar, Self> { ... }
}

Types that implement local flattening approximation at the start of the curve.

Required methods

fn flattening_step(&self, tolerance: Self::Scalar) -> Self::Scalar

Find the interval of the begining of the curve that can be approximated with a line segment.

Loading content...

Provided methods

fn flattened(self, tolerance: Self::Scalar) -> Flattened<Self::Scalar, Self>

Returns the flattened representation of the curve as an iterator, starting after the current point.

Loading content...

Implementors

impl<S: Scalar> FlatteningStep for Arc<S>[src]

fn flattened(self, tolerance: Self::Scalar) -> Flattened<Self::Scalar, Self>[src]

impl<S: Scalar> FlatteningStep for QuadraticBezierSegment<S>[src]

fn flattened(self, tolerance: Self::Scalar) -> Flattened<Self::Scalar, Self>[src]

impl<S: Scalar> FlatteningStep for LineSegment<S>[src]

fn flattened(self, tolerance: Self::Scalar) -> Flattened<Self::Scalar, Self>[src]

Loading content...