Trait Center
valora::attributes
pub trait Center { fn center(&self) -> P2; }
A trait for objects which have a spatial center.
fn center(&self) -> P2
Returns the center of the object.
impl Center for Polygon
impl Center for Rect