Struct rasterize::EllipArc [−][src]
pub struct EllipArc { /* fields omitted */ }
Elliptical Arc
Implementations
impl EllipArc
[src]
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]
src: Point,
dst: Point,
rx: Scalar,
ry: Scalar,
x_axis_rot: Scalar,
large_flag: bool,
sweep_flag: bool
) -> Option<Self>
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 StructuralPartialEq for EllipArc
[src]
impl StructuralPartialEq for EllipArc
[src]Auto Trait Implementations
impl RefUnwindSafe for EllipArc
impl RefUnwindSafe for EllipArc
impl UnwindSafe for EllipArc
impl UnwindSafe for EllipArc