Struct buffer_graphics_lib::prelude::Circle
source · pub struct Circle { /* private fields */ }
Implementations§
source§impl Circle
impl Circle
pub fn as_rect(&self) -> Rect
sourcepub fn as_radius_line(&self) -> Line
pub fn as_radius_line(&self) -> Line
Create line from center to top edge at 0 degrees
pub fn as_horizontal_line(&self) -> Line
pub fn as_vertical_line(&self) -> Line
pub fn as_ellipse(&self) -> Ellipse
Trait Implementations§
source§impl FromDrawable<Circle> for ShapeBox
impl FromDrawable<Circle> for ShapeBox
source§impl PartialEq<Circle> for Circle
impl PartialEq<Circle> for Circle
source§impl Shape for Circle
impl Shape for Circle
source§fn translate_by<P>(&self, delta: P) -> Circlewhere
P: Into<Coord>,
fn translate_by<P>(&self, delta: P) -> Circlewhere P: Into<Coord>,
change every point by +
delta
source§fn move_to<P>(&self, point: P) -> Circlewhere
P: Into<Coord>,
fn move_to<P>(&self, point: P) -> Circlewhere P: Into<Coord>,
moves the shapes first point to
point
(and changes every other point to match their original distance and angle) Read moresource§fn contains<P>(&self, point: P) -> boolwhere
P: Into<Coord>,
fn contains<P>(&self, point: P) -> boolwhere P: Into<Coord>,
returns true if the shape contains point
source§fn move_center_to<P>(&self, point: P) -> Selfwhere
P: Into<Coord>,
Self: Sized,
fn move_center_to<P>(&self, point: P) -> Selfwhere P: Into<Coord>, Self: Sized,
moves the shapes centerto
point
(and changes every other point to match their original distance and angle) Read moresource§fn rotate_around<P>(&self, degrees: isize, point: P) -> Selfwhere
P: Into<Coord>,
Self: Sized,
fn rotate_around<P>(&self, degrees: isize, point: P) -> Selfwhere P: Into<Coord>, Self: Sized,
rotate shape around a point
impl Eq for Circle
impl StructuralEq 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§
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