Struct graphics_shapes::circle::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 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 Shape for Circle
impl Shape for Circle
source§fn translate_by<P: Into<Coord>>(&self, delta: P) -> Self
fn translate_by<P: Into<Coord>>(&self, delta: P) -> Self
change every point by +
deltasource§fn move_to<P: Into<Coord>>(&self, point: P) -> Self
fn move_to<P: Into<Coord>>(&self, point: P) -> Self
moves the shapes first point to
point
(and changes every other point to match their original distance and angle) Read more