Struct graphics_shapes::ellipse::Ellipse
source · pub struct Ellipse { /* private fields */ }Implementations§
Trait Implementations§
source§impl PartialEq<Ellipse> for Ellipse
impl PartialEq<Ellipse> for Ellipse
source§impl Shape for Ellipse
impl Shape for Ellipse
source§fn from_points(points: &[Coord]) -> Selfwhere
Self: Sized,
fn from_points(points: &[Coord]) -> Selfwhere
Self: Sized,
must be [top_left, bottom_right]
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 moresource§fn move_center_to<P: Into<Coord>>(&self, point: P) -> Selfwhere
Self: Sized,
fn move_center_to<P: Into<Coord>>(&self, point: P) -> Selfwhere
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: Into<Coord>>(&self, degrees: isize, point: P) -> Selfwhere
Self: Sized,
fn rotate_around<P: Into<Coord>>(&self, degrees: isize, point: P) -> Selfwhere
Self: Sized,
rotate shape around a point