#[repr(C)]pub struct Arc {
pub from: Point,
pub to: Point,
pub radius: Point,
pub x_axis_rotation: f64,
pub large_arc: bool,
pub sweep: bool,
/* private fields */
}
Fields§
§from: Point
§to: Point
§radius: Point
§x_axis_rotation: f64
§large_arc: bool
§sweep: bool
Implementations§
Source§impl Arc
impl Arc
pub fn new( from: Point, to: Point, radius: Point, x_axis_rotation: f64, large_arc: bool, sweep: bool, ) -> Arc
Sourcepub fn is_approximately_linear(&self, epsilon: f64) -> bool
pub fn is_approximately_linear(&self, epsilon: f64) -> bool
Returns true if self
is approximately linear with tolerance epsilon
.
pub fn point_on_curve(&self, t: f64) -> Point
pub fn midpoint(&self) -> Point
pub fn split(&self, t: f64) -> (Arc, Arc)
pub fn linearize(self, epsilon: f64) -> Linearize
Trait Implementations§
Source§impl Transform for Arc
impl Transform for Arc
fn transform<T>(self, t: &T) -> Arcwhere
T: Transformation,
fn transform_mut<T>(&mut self, t: &T)where
T: Transformation,
impl Copy for Arc
impl StructuralPartialEq for Arc
Auto Trait Implementations§
impl Freeze for Arc
impl RefUnwindSafe for Arc
impl Send for Arc
impl Sync for Arc
impl Unpin for Arc
impl UnwindSafe for Arc
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