pub enum PolyCode {
MoveTo,
LineTo,
Curve3,
Curve4,
}
Expand description
Defines the poly-curve code
Reference: Matplotlib
Variants§
MoveTo
Move to coordinate (first point)
Matplotlib: Pick up the pen and move to the given vertex.
LineTo
Segment (next point, need 2 points)
Matplotlib: Draw a line from the current position to the given vertex.
Curve3
Quadratic Bezier (next point, need 3 control points with the first and last points on the curve)
Matplotlib: Draw a quadratic Bezier curve from the current position, with the given control point, to the given end point.
Curve4
Cubic Bezier (next point, need 4 control points with the first and last points on the curve)
Matplotlib: Draw a cubic Bezier curve from the current position, with the given control points, to the given end point.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PolyCode
impl RefUnwindSafe for PolyCode
impl Send for PolyCode
impl Sync for PolyCode
impl Unpin for PolyCode
impl UnwindSafe for PolyCode
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