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