[][src]Struct lyon_geom::SvgArc

pub struct SvgArc<S> {
    pub from: Point<S>,
    pub to: Point<S>,
    pub radii: Vector<S>,
    pub x_rotation: Angle<S>,
    pub flags: ArcFlags,
}

An elliptic arc curve segment using the SVG's end-point notation.

Fields

from: Point<S>to: Point<S>radii: Vector<S>x_rotation: Angle<S>flags: ArcFlags

Methods

impl<S: Scalar> SvgArc<S>[src]

pub fn to_arc(&self) -> Arc<S>[src]

Converts this arc from endpoints to center notation.

pub fn is_straight_line(&self) -> bool[src]

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.

pub fn for_each_quadratic_bezier<F>(&self, cb: &mut F) where
    F: FnMut(&QuadraticBezierSegment<S>), 
[src]

Approximates the arc with a sequence of quadratic bézier segments.

pub fn for_each_cubic_bezier<F>(&self, cb: &mut F) where
    F: FnMut(&CubicBezierSegment<S>), 
[src]

Approximates the arc with a sequence of cubic bézier segments.

pub fn for_each_flattened<F: FnMut(Point<S>)>(&self, tolerance: S, cb: &mut F)[src]

Approximates the arc with a sequence of line segments.

Trait Implementations

impl<S: Copy> Copy for SvgArc<S>[src]

impl<S: Clone> Clone for SvgArc<S>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<S: PartialEq> PartialEq<SvgArc<S>> for SvgArc<S>[src]

impl<S: Scalar> Into<Arc<S>> for SvgArc<S>[src]

impl<S: Debug> Debug for SvgArc<S>[src]

Auto Trait Implementations

impl<S> Unpin for SvgArc<S> where
    S: Unpin

impl<S> Sync for SvgArc<S> where
    S: Sync

impl<S> Send for SvgArc<S> where
    S: Send

impl<S> UnwindSafe for SvgArc<S> where
    S: UnwindSafe

impl<S> RefUnwindSafe for SvgArc<S> where
    S: RefUnwindSafe

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]