[−][src]Struct kurbo::Circle
A circle.
Fields
center: PointThe center.
radius: f64The radius.
Methods
impl Circle[src]
pub fn new(center: impl Into<Point>, radius: f64) -> Circle[src]
A new circle from center and radius.
Trait Implementations
impl Add<Vec2> for Circle[src]
type Output = Circle
The resulting type after applying the + operator.
fn add(self, v: Vec2) -> Circle[src]
impl Clone for Circle[src]
fn clone(&self) -> Circle[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for Circle[src]
impl Debug for Circle[src]
impl Default for Circle[src]
impl Mul<Circle> for TranslateScale[src]
type Output = Circle
The resulting type after applying the * operator.
fn mul(self, other: Circle) -> Circle[src]
impl Shape for Circle[src]
type BezPathIter = CirclePathIter
The iterator resulting from to_bez_path.
fn to_bez_path(&self, tolerance: f64) -> CirclePathIter[src]
fn area(&self) -> f64[src]
fn perimeter(&self, _accuracy: f64) -> f64[src]
fn winding(&self, pt: Point) -> i32[src]
fn bounding_box(&self) -> Rect[src]
fn as_circle(&self) -> Option<Circle>[src]
fn into_bez_path(self, tolerance: f64) -> BezPath[src]
fn as_line(&self) -> Option<Line>[src]
fn as_rect(&self) -> Option<Rect>[src]
fn as_rounded_rect(&self) -> Option<RoundedRect>[src]
fn as_path_slice(&self) -> Option<&[PathEl]>[src]
impl Sub<Vec2> for Circle[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,