Trait Drawable

Source
pub trait Drawable {
    // Required methods
    fn bounding_box(&self) -> (Point3f, Point3f);
    fn center(&self) -> Point3f;
}
Expand description

Trait for drawable/renderable objects

Required Methods§

Source

fn bounding_box(&self) -> (Point3f, Point3f)

Get the bounding box of the object

Source

fn center(&self) -> Point3f

Get the center point of the object

Implementors§