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 +
deltasource§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