Struct kurbo::Circle[][src]

pub struct Circle {
    pub center: Point,
    pub radius: f64,
}

A circle.

Fields

center: Point

The center.

radius: f64

The radius.

Implementations

impl Circle[src]

pub fn new(center: impl Into<Point>, radius: f64) -> Circle[src]

A new circle from center and radius.

pub fn segment(
    self,
    inner_radius: f64,
    start_angle: f64,
    sweep_angle: f64
) -> CircleSegment
[src]

Create a CircleSegment by cutting out parts of this circle.

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

Is this circle finite?

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

Is this circle NaN?

Trait Implementations

impl Add<Vec2> for Circle[src]

type Output = Circle

The resulting type after applying the + operator.

impl Clone for Circle[src]

impl Copy for Circle[src]

impl Debug for Circle[src]

impl Default for Circle[src]

impl<'de> Deserialize<'de> for Circle[src]

impl From<Circle> for Ellipse[src]

impl Mul<Circle> for Affine[src]

type Output = Ellipse

The resulting type after applying the * operator.

impl Mul<Circle> for TranslateScale[src]

type Output = Circle

The resulting type after applying the * operator.

impl PartialEq<Circle> for Circle[src]

impl Serialize for Circle[src]

impl Shape for Circle[src]

type PathElementsIter = CirclePathIter

The iterator returned by the path_elements method. Read more

impl StructuralPartialEq for Circle[src]

impl Sub<Vec2> for Circle[src]

type Output = Circle

The resulting type after applying the - operator.

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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