Struct lyon_geom::Arc [−][src]
pub struct Arc<S> { pub center: Point<S>, pub radii: Vector<S>, pub start_angle: Angle<S>, pub sweep_angle: Angle<S>, pub x_rotation: Angle<S>, }
Expand description
An elliptic arc curve segment.
Fields
center: Point<S>
radii: Vector<S>
start_angle: Angle<S>
sweep_angle: Angle<S>
x_rotation: Angle<S>
Implementations
Convert from the SVG arc notation.
Convert to the SVG arc notation.
pub fn for_each_quadratic_bezier<F>(&self, cb: &mut F) where
F: FnMut(&QuadraticBezierSegment<S>),
pub fn for_each_quadratic_bezier<F>(&self, cb: &mut F) where
F: FnMut(&QuadraticBezierSegment<S>),
Approximate the arc with a sequence of quadratic bézier curves.
Approximate the arc with a sequence of cubic bézier curves.
Sample the curve’s tangent at t (expecting t between 0 and 1).
Sample the curve’s angle at t (expecting t between 0 and 1).
Return the sub-curve inside a given range of t.
This is equivalent splitting at the range’s end points.
Return the curve before the split point.
Return the curve after the split point.
Approximates the arc with a sequence of line segments.
pub fn for_each_flattened_with_t<F>(&self, tolerance: S, callback: &mut F) where
F: FnMut(Point<S>, S),
pub fn for_each_flattened_with_t<F>(&self, tolerance: S, callback: &mut F) where
F: FnMut(Point<S>, S),
Iterates through the curve invoking a callback at each point.
Returns the flattened representation of the curve as an iterator, starting after the current point.
Returns a conservative rectangle that contains the curve.
Returns a conservative rectangle that contains the curve.
Trait Implementations
type Scalar = S
Sample the derivative at t (expecting t between 0 and 1).
Return the curve inside a given range of t. Read more
Return the curve before the split point.
Return the curve after the split point.
Compute the length of the segment using a flattened approximation.
Sample x derivative at t (expecting t between 0 and 1).
Auto Trait Implementations
impl<S> RefUnwindSafe for Arc<S> where
S: RefUnwindSafe,
impl<S> UnwindSafe for Arc<S> where
S: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more