[−]Struct piet_common::kurbo::Circle
A circle.
Fields
center: PointThe center.
radius: f64The radius.
Methods
impl Circle
pub fn new<impl Into>(center: impl Into, radius: f64) -> Circle where
impl Into: Into<Point>,
impl Into
A new circle from center and radius.
Trait Implementations
impl Copy for Circle
impl Mul<Circle> for TranslateScale
type Output = Circle
The resulting type after applying the * operator.
fn mul(self, other: Circle) -> Circle
impl Default for Circle
impl Debug for Circle
impl Shape for Circle
type BezPathIter = CirclePathIter
The iterator resulting from to_bez_path.
fn to_bez_path(&self, tolerance: f64) -> CirclePathIter
fn area(&self) -> f64
fn perimeter(&self, _accuracy: f64) -> f64
fn winding(&self, pt: Point) -> i32
fn bounding_box(&self) -> Rect
fn as_circle(&self) -> Option<Circle>
fn into_bez_path(self, tolerance: f64) -> BezPath
Convert into a Bézier path. Read more
fn as_line(&self) -> Option<Line>
If the shape is a line, make it available.
fn as_rect(&self) -> Option<Rect>
If the shape is a rectangle, make it available.
fn as_rounded_rect(&self) -> Option<RoundedRect>
If the shape is a rounded rectangle, make it available.
fn as_path_slice(&self) -> Option<&[PathEl]>
If the shape is stored as a slice of path elements, make that available. Read more
impl Clone for Circle
fn clone(&self) -> Circle
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Add<Vec2> for Circle
type Output = Circle
The resulting type after applying the + operator.
fn add(self, v: Vec2) -> Circle
impl Sub<Vec2> for Circle
Auto Trait Implementations
impl Sync for Circle
impl Send for Circle
impl Unpin for Circle
impl RefUnwindSafe for Circle
impl UnwindSafe for Circle
Blanket Implementations
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> RoundFrom<T> for T[src]
fn round_from(x: T) -> T[src]
impl<T, U> RoundInto<U> for T where
U: RoundFrom<T>, [src]
U: RoundFrom<T>,