pub trait Drawable {
// Required methods
fn bounding_box(&self) -> (Point3f, Point3f);
fn center(&self) -> Point3f;
}
Expand description
Trait for drawable/renderable objects
Required Methods§
Sourcefn bounding_box(&self) -> (Point3f, Point3f)
fn bounding_box(&self) -> (Point3f, Point3f)
Get the bounding box of the object