pub struct Curve4 { /* private fields */ }Expand description
Cubic Bezier curve with selectable algorithm.
Defaults to subdivision (Div). Delegates to Curve4Inc or Curve4Div.
Port of C++ agg::curve4.
Implementations§
Source§impl Curve4
impl Curve4
pub fn new() -> Self
pub fn new_with_points( x1: f64, y1: f64, x2: f64, y2: f64, x3: f64, y3: f64, x4: f64, y4: f64, ) -> Self
pub fn new_with_curve4_points(cp: &Curve4Points) -> Self
pub fn reset(&mut self)
pub fn init( &mut self, x1: f64, y1: f64, x2: f64, y2: f64, x3: f64, y3: f64, x4: f64, y4: f64, )
pub fn init_with_curve4_points(&mut self, cp: &Curve4Points)
pub fn set_approximation_method(&mut self, v: CurveApproximationMethod)
pub fn approximation_method(&self) -> CurveApproximationMethod
pub fn set_approximation_scale(&mut self, s: f64)
pub fn approximation_scale(&self) -> f64
pub fn set_angle_tolerance(&mut self, v: f64)
pub fn angle_tolerance(&self) -> f64
pub fn set_cusp_limit(&mut self, v: f64)
pub fn cusp_limit(&self) -> f64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Curve4
impl RefUnwindSafe for Curve4
impl Send for Curve4
impl Sync for Curve4
impl Unpin for Curve4
impl UnsafeUnpin for Curve4
impl UnwindSafe for Curve4
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