pub struct SvgArc {
pub from: Point,
pub to: Point,
pub radii: Vec2,
pub x_rotation: f64,
pub large_arc: bool,
pub sweep: bool,
}
Expand description
A single SVG arc segment.
Fields§
§from: Point
The arc’s start point.
to: Point
The arc’s end point.
radii: Vec2
The arc’s radii, where the vector’s x-component is the radius in the
positive x direction after applying x_rotation
.
x_rotation: f64
How much the arc is rotated, in radians.
large_arc: bool
Does this arc sweep through more than π radians?
sweep: bool
Determines if the arc should begin moving at positive angles.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SvgArc
impl RefUnwindSafe for SvgArc
impl Send for SvgArc
impl Sync for SvgArc
impl Unpin for SvgArc
impl UnwindSafe for SvgArc
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
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)