pub trait Shape {
// Required methods
fn centroid(&self) -> Point;
fn area(&self) -> fsize;
fn bbox(&self) -> AARectangle;
fn diameter(&self) -> fsize;
}
Expand description
Trait for shared properties of geometric primitives.
Required Methods§
Sourcefn bbox(&self) -> AARectangle
fn bbox(&self) -> AARectangle
Bounding box of the shape