pub struct Arc<S> { /* private fields */ }
Expand description
A circle segment.
Implementations§
Source§impl<S> Arc<S>
impl<S> Arc<S>
pub fn from_centre_radius( centre: Point2D<f64, S>, radius: f64, start_angle: Angle, sweep_angle: Angle, ) -> Self
pub fn from_three_points( start: Point2D<f64, S>, middle: Point2D<f64, S>, end: Point2D<f64, S>, ) -> Option<Self>
pub const fn centre(self) -> Point2D<f64, S>
pub const fn radius(self) -> f64
pub const fn start_angle(self) -> Angle
pub const fn sweep_angle(self) -> Angle
pub fn end_angle(self) -> Angle
pub fn is_anticlockwise(self) -> bool
pub fn is_clockwise(self) -> bool
pub fn start(self) -> Point2D<f64, S>
pub fn end(self) -> Point2D<f64, S>
pub fn point_at(self, angle: Angle) -> Point2D<f64, S>
pub fn contains_angle(self, angle: Angle) -> bool
pub fn is_minor_arc(&self) -> bool
pub fn is_major_arc(&self) -> bool
Trait Implementations§
impl<S> Copy for Arc<S>
impl<S> StructuralPartialEq for Arc<S>
Auto Trait Implementations§
impl<S> Freeze for Arc<S>
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§
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