pub struct SvgArc<S> {
pub from: TypedPoint2D<S, UnknownUnit>,
pub to: TypedPoint2D<S, UnknownUnit>,
pub radii: TypedVector2D<S, UnknownUnit>,
pub x_rotation: Angle<S>,
pub flags: ArcFlags,
}Expand description
An ellipic arc curve segment using the SVG’s end-point notation.
Fields§
§from: TypedPoint2D<S, UnknownUnit>§to: TypedPoint2D<S, UnknownUnit>§radii: TypedVector2D<S, UnknownUnit>§x_rotation: Angle<S>§flags: ArcFlagsImplementations§
Source§impl<S> SvgArc<S>where
S: Scalar,
impl<S> SvgArc<S>where
S: Scalar,
Sourcepub fn is_straight_line(&self) -> bool
pub fn is_straight_line(&self) -> bool
Per SVG spec, this arc should be rendered as a line_to segment.
Do not convert an SvgArc into an arc if this returns true.
Sourcepub fn for_each_quadratic_bezier<F>(&self, cb: &mut F)where
F: FnMut(&QuadraticBezierSegment<S>),
pub fn for_each_quadratic_bezier<F>(&self, cb: &mut F)where
F: FnMut(&QuadraticBezierSegment<S>),
Approximates the arc with a sequence of quadratic bézier segments.
Sourcepub fn for_each_flattened<F>(&self, tolerance: S, cb: &mut F)
pub fn for_each_flattened<F>(&self, tolerance: S, cb: &mut F)
Approximates the arc with a sequence of line segments.
Trait Implementations§
impl<S> Copy for SvgArc<S>where
S: Copy,
impl<S> StructuralPartialEq for SvgArc<S>
Auto Trait Implementations§
impl<S> Freeze for SvgArc<S>where
S: Freeze,
impl<S> RefUnwindSafe for SvgArc<S>where
S: RefUnwindSafe,
impl<S> Send for SvgArc<S>where
S: Send,
impl<S> Sync for SvgArc<S>where
S: Sync,
impl<S> Unpin for SvgArc<S>where
S: Unpin,
impl<S> UnwindSafe for SvgArc<S>where
S: UnwindSafe,
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