pub trait Coordinate2D { fn x(&self) -> f64; fn y(&self) -> f64; fn coords(&self) -> (f64, f64) { ... } }
Represents a coordinate with a 2D position