pub struct SimplifyBezPath(/* private fields */);
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§
source§impl SimplifyBezPath
impl SimplifyBezPath
sourcepub fn new(path: impl IntoIterator<Item = PathEl>) -> Self
pub fn new(path: impl IntoIterator<Item = PathEl>) -> Self
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§
source§impl ParamCurveFit for SimplifyBezPath
impl ParamCurveFit for SimplifyBezPath
source§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 moresource§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 Freeze for SimplifyBezPath
impl RefUnwindSafe for SimplifyBezPath
impl Send for SimplifyBezPath
impl Sync for SimplifyBezPath
impl Unpin for SimplifyBezPath
impl UnwindSafe for SimplifyBezPath
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more