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

Construct a new point.

Get a coordinate value.

Set a coordinate value.

Provided Methods

Get the x-coordinate value.

Get the y-coordinate value.

Implementors