pub struct ArcFlags {
pub large_arc: bool,
pub sweep: bool,
}
Expand description
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 Copy for ArcFlags
impl StructuralPartialEq for ArcFlags
Auto Trait Implementations§
impl Freeze for ArcFlags
impl RefUnwindSafe for ArcFlags
impl Send for ArcFlags
impl Sync for ArcFlags
impl Unpin for ArcFlags
impl UnwindSafe for ArcFlags
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)