pub struct SimplifyBezPath(_);
Expand description
A Bézier path which has been prepared for simplification.
See the module-level documentation for a bit more discussion of the approach, and how this struct is to be used.
Implementations§
§impl SimplifyBezPath
impl SimplifyBezPath
pub fn new(path: impl IntoIterator<Item = PathEl>) -> SimplifyBezPath
pub fn new(path: impl IntoIterator<Item = PathEl>) -> SimplifyBezPath
Set up a new Bézier path for simplification.
Currently this is not dealing with discontinuities at all, but it could be extended to do so.
Trait Implementations§
§impl ParamCurveFit for SimplifyBezPath
impl ParamCurveFit for SimplifyBezPath
§fn sample_pt_deriv(&self, t: f64) -> (Point, Vec2)
fn sample_pt_deriv(&self, t: f64) -> (Point, Vec2)
Evaluate the point and derivative at parameter
t
. Read more§fn sample_pt_tangent(&self, t: f64, _: f64) -> CurveFitSample
fn sample_pt_tangent(&self, t: f64, _: f64) -> CurveFitSample
Evaluate the curve and its tangent at parameter
t
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for SimplifyBezPath
impl Send for SimplifyBezPath
impl Sync for SimplifyBezPath
impl Unpin for SimplifyBezPath
impl UnwindSafe for SimplifyBezPath
Blanket Implementations§
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.