Struct lyon_path::ArcFlags[][src]

pub struct ArcFlags {
    pub large_arc: bool,
    pub sweep: bool,
}

Flag parameters for arcs as described by the SVG specification.

For most situations using the SVG arc notation, there are four different arcs (two different ellipses, each with two different arc sweeps) that satisfy the arc parameters. The large_arc and sweep flags indicate which one of the four arcs are drawn, as follows:

See more examples in the SVG specification

Fields

large_arc: bool

Of the four candidate arc sweeps, two will represent an arc sweep of greater than or equal to 180 degrees (the “large-arc”), and two will represent an arc sweep of less than or equal to 180 degrees (the “small arc”). If large_arc is true, then one of the two larger arc sweeps will be chosen; otherwise, if large_arc is false, one of the smaller arc sweeps will be chosen.

sweep: bool

If sweep is true, then the arc will be drawn in a “positive-angle” direction (the ellipse formula x=cx+rx*cos(theta) and y=cy+ry*sin(theta) is evaluated such that theta starts at an angle corresponding to the current point and increases positively until the arc reaches the destination position). A value of false causes the arc to be drawn in a “negative-angle” direction (theta starts at an angle value corresponding to the current point and decreases until the arc reaches the destination position).

Trait Implementations

impl Clone for ArcFlags[src]

impl Copy for ArcFlags[src]

impl Debug for ArcFlags[src]

impl Default for ArcFlags[src]

impl PartialEq<ArcFlags> for ArcFlags[src]

impl StructuralPartialEq for ArcFlags[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.