[][src]Trait valora::attributes::Center

pub trait Center {
    fn center(&self) -> P2;
}

A trait for objects which have a spatial center.

Required methods

fn center(&self) -> P2

Returns the center of the object.

Loading content...

Implementors

impl Center for Polygon[src]

impl Center for Rect[src]

Loading content...