Struct piet_common::kurbo::Circle
Expand description
A circle.
Fields
center: PointThe center.
radius: f64The radius.
Implementations
impl Circle
impl Circle
pub fn segment(
self,
inner_radius: f64,
start_angle: f64,
sweep_angle: f64
) -> CircleSegment
pub fn segment(
self,
inner_radius: f64,
start_angle: f64,
sweep_angle: f64
) -> CircleSegment
Create a CircleSegment by cutting out parts of this circle.
Trait Implementations
impl Mul<Circle> for TranslateScale
impl Mul<Circle> for TranslateScale
impl Shape for Circle
impl Shape for Circle
type PathElementsIter = CirclePathIter
type PathElementsIter = CirclePathIter
The iterator returned by the
path_elements method. Read morefn path_elements(&self, tolerance: f64) -> CirclePathIter
fn path_elements(&self, tolerance: f64) -> CirclePathIter
fn winding(&self, pt: Point) -> i32
fn winding(&self, pt: Point) -> i32
The winding number of a point. Read more
fn bounding_box(&self) -> Rect
fn bounding_box(&self) -> Rect
The smallest rectangle that encloses the shape.
fn path_segments(&self, tolerance: f64) -> Segments<Self::PathElementsIter<'_>> ⓘ
fn path_segments(&self, tolerance: f64) -> Segments<Self::PathElementsIter<'_>> ⓘ
fn as_rounded_rect(&self) -> Option<RoundedRect>
fn as_rounded_rect(&self) -> Option<RoundedRect>
If the shape is a rounded rectangle, make it available.
fn as_path_slice(&self) -> Option<&[PathEl]>
fn as_path_slice(&self) -> Option<&[PathEl]>
If the shape is stored as a slice of path elements, make
that available. Read more
impl Copy for Circle
impl StructuralPartialEq for Circle
Auto Trait Implementations
impl RefUnwindSafe for Circle
impl Send for Circle
impl Sync for Circle
impl Unpin for Circle
impl UnwindSafe for Circle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
sourcefn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
sourceimpl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
sourcefn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.