[−][src]Struct lyon_geom::ArcFlags
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
impl RefUnwindSafe for ArcFlags
[src]
impl Send for ArcFlags
[src]
impl Sync for ArcFlags
[src]
impl Unpin for ArcFlags
[src]
impl UnwindSafe for ArcFlags
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,