[][src]Struct arcs::primitives::Arc

pub struct Arc<S> { /* fields omitted */ }

A circle segment.

Methods

impl<S> Arc<S>[src]

pub fn from_centre_radius(
    centre: Point2D<f64, S>,
    radius: f64,
    start_angle: Angle,
    sweep_angle: Angle
) -> Self
[src]

pub fn from_three_points(
    start: Point2D<f64, S>,
    middle: Point2D<f64, S>,
    end: Point2D<f64, S>
) -> Option<Self>
[src]

pub const fn centre(self) -> Point2D<f64, S>[src]

pub const fn radius(self) -> f64[src]

pub const fn start_angle(self) -> Angle[src]

pub const fn sweep_angle(self) -> Angle[src]

pub fn end_angle(self) -> Angle[src]

pub fn is_anticlockwise(self) -> bool[src]

pub fn is_clockwise(self) -> bool[src]

pub fn start(self) -> Point2D<f64, S>[src]

pub fn end(self) -> Point2D<f64, S>[src]

pub fn point_at(self, angle: Angle) -> Point2D<f64, S>[src]

pub fn contains_angle(self, angle: Angle) -> bool[src]

pub fn is_minor_arc(&self) -> bool[src]

pub fn is_major_arc(&self) -> bool[src]

Trait Implementations

impl<S> Clone for Arc<S>[src]

impl<S> Copy for Arc<S>[src]

impl<S: Debug> Debug for Arc<S>[src]

impl<S: PartialEq> PartialEq<Arc<S>> for Arc<S>[src]

impl<S> StructuralPartialEq for Arc<S>[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for Arc<S> where
    S: RefUnwindSafe

impl<S> Send for Arc<S> where
    S: Send

impl<S> Sync for Arc<S> where
    S: Sync

impl<S> Unpin for Arc<S> where
    S: Unpin

impl<S> UnwindSafe for Arc<S> where
    S: UnwindSafe

Blanket Implementations

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

impl<T> Any for T where
    T: Any

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

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

impl<T> Event for T where
    T: Send + Sync + 'static, 

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

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

impl<T> Resource for T where
    T: Any + Send + Sync
[src]

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

impl<T, U> RoundInto<U> for T where
    U: RoundFrom<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.