pub struct EllipArc { /* private fields */ }
Expand description
Elliptical Arc
Implementations§
source§impl EllipArc
impl EllipArc
sourcepub fn new_param(
src: Point,
dst: Point,
rx: Scalar,
ry: Scalar,
x_axis_rot: Scalar,
large_flag: bool,
sweep_flag: bool
) -> Option<Self>
pub fn new_param( 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 specification Arc to Parametric
pub fn at(&self, t: Scalar) -> Point
pub fn start(&self) -> Point
pub fn end(&self) -> Point
pub fn bbox(&self, init: Option<BBox>) -> BBox
pub fn reverse(&self) -> Self
Trait Implementations§
source§impl PartialEq for EllipArc
impl PartialEq for EllipArc
impl Copy for EllipArc
impl StructuralPartialEq for EllipArc
Auto Trait Implementations§
impl Freeze for EllipArc
impl RefUnwindSafe for EllipArc
impl Send for EllipArc
impl Sync for EllipArc
impl Unpin for EllipArc
impl UnwindSafe for EllipArc
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more