Struct rasterize::EllipArc[][src]

pub struct EllipArc { /* fields omitted */ }

Elliptical Arc

Implementations

impl EllipArc[src]

pub fn new_param(
    src: Point,
    dst: Point,
    rx: Scalar,
    ry: Scalar,
    x_axis_rot: Scalar,
    large_flag: bool,
    sweep_flag: bool
) -> Option<Self>
[src]

Convert arc from SVG arguments to parametric curve

This code mostly comes from arc implementation notes from svg sepc (Arc to Parametric)[https://www.w3.org/TR/SVG/implnote.html#ArcImplementationNotes]

pub fn at(&self, t: Scalar) -> Point[src]

pub fn start(&self) -> Point[src]

pub fn end(&self) -> Point[src]

pub fn bbox(&self, init: Option<BBox>) -> BBox[src]

pub fn reverse(&self) -> Self[src]

pub fn to_cubics(&self) -> EllipArcCubicIter[src]

Convert elliptic arc to an iterator over Cubic segments

pub fn flatten(&self, tr: Transform, flatness: Scalar) -> EllipArcFlattenIter[src]

Convert elliptic arc to an iterator over line segments with desired flatness

Trait Implementations

impl Clone for EllipArc[src]

impl Copy for EllipArc[src]

impl Debug for EllipArc[src]

impl PartialEq<EllipArc> for EllipArc[src]

impl StructuralPartialEq for EllipArc[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.