Struct graphics_shapes::triangle::Triangle
source · [−]pub struct Triangle { /* private fields */ }
Implementations
sourceimpl Triangle
impl Triangle
pub fn angles(&self) -> [isize; 3]
pub fn angle_type(&self) -> &TriangleAngleType
pub fn side_type(&self) -> &TriangleSideType
Trait Implementations
sourceimpl PartialEq<Triangle> for Triangle
impl PartialEq<Triangle> for Triangle
sourceimpl Shape for Triangle
impl Shape for Triangle
sourcefn from_points(points: Vec<Coord>) -> Selfwhere
Self: Sized,
fn from_points(points: Vec<Coord>) -> Selfwhere
Self: Sized,
create this shape from a list of points
sourcefn translate_by<P: Into<Coord>>(&self, delta: P) -> Selfwhere
Self: Sized,
fn translate_by<P: Into<Coord>>(&self, delta: P) -> Selfwhere
Self: Sized,
change every point by +delta
sourcefn move_to<P: Into<Coord>>(&self, point: P) -> Selfwhere
Self: Sized,
fn move_to<P: Into<Coord>>(&self, point: P) -> Selfwhere
Self: Sized,
moves the shapes first point to point
(and changes every other point to match their original distance and angle) Read more
fn rotate(&self, degrees: isize) -> Selfwhere
Self: Sized,
fn rotate_around<P: Into<Coord>>(&self, degrees: isize, point: P) -> Selfwhere
Self: Sized,
impl Eq for Triangle
impl StructuralEq for Triangle
impl StructuralPartialEq for Triangle
Auto Trait Implementations
impl RefUnwindSafe for Triangle
impl Send for Triangle
impl Sync for Triangle
impl Unpin for Triangle
impl UnwindSafe for Triangle
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