pub enum LinePoint {
Straight {
point: Point,
},
QuadraticBezierCurve {
point: Point,
curve: Point,
},
CubicBezierCurve {
point: Point,
curve_a: Point,
curve_b: Point,
},
}Expand description
Enum that describes the various types of lines
Variants§
Straight
A hard corner
point - end point of the line segment
QuadraticBezierCurve
Curve with single control point at curve
point - end point of the line segment
curve - position the line will curve towards
CubicBezierCurve
Curve with two control points
point - end point of the line segment
curve_a - control point that influences beginning of line
curve_a - control point that influences end of line
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LinePoint
impl RefUnwindSafe for LinePoint
impl Send for LinePoint
impl Sync for LinePoint
impl Unpin for LinePoint
impl UnwindSafe for LinePoint
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