Struct lyon_geom::SvgArc
[−]
[src]
pub struct SvgArc<S> { pub from: Point<S>, pub to: Point<S>, pub radii: Vector<S>, pub x_rotation: Angle<S>, pub flags: ArcFlags, }
An ellipic 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]
fn to_arc(&self) -> Arc<S>
[src]
Converts this arc from endpoints to center notation.
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.
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.
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]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<S: Debug> Debug for SvgArc<S>
[src]
impl<S: PartialEq> PartialEq for SvgArc<S>
[src]
fn eq(&self, __arg_0: &SvgArc<S>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SvgArc<S>) -> bool
[src]
This method tests for !=
.