Trait iron_shapes::concepts::PointBase
source · [−]pub trait PointBase<C: CoordinateBase> {
fn new(x: C::Coord, y: C::Coord) -> Self;
fn get(&self, orient: Orientation2D) -> C::Coord;
fn set(&mut self, orient: Orientation2D, value: C::Coord);
fn x(&self) -> C::Coord { ... }
fn y(&self) -> C::Coord { ... }
}Expand description
Basic traits to get and set Kartesian coordinates of a point in the two-dimensional plane.
Required Methods
fn get(&self, orient: Orientation2D) -> C::Coord
fn get(&self, orient: Orientation2D) -> C::Coord
Get a coordinate value.
fn set(&mut self, orient: Orientation2D, value: C::Coord)
fn set(&mut self, orient: Orientation2D, value: C::Coord)
Set a coordinate value.