[][src]Trait fart::shape::Shape

pub trait Shape<T, U>: Debug {
    fn paths(&self) -> Vec<Path<T, U>>;
fn aabb(&self) -> Aabb<T, U>; }

Any kind of shape!

Required methods

fn paths(&self) -> Vec<Path<T, U>>

Get the paths that will render this shape and/or fill it with a texture.

fn aabb(&self) -> Aabb<T, U>

Get this shape's axis-aligned bounding box.

Loading content...

Implementors

impl<T, U> Shape<T, U> for Triangle<T, U> where
    T: Num + Copy + Debug + PartialOrd,
    U: Copy + Debug
[src]

Loading content...