Skip to main content

ConvexShape

Trait ConvexShape 

Source
pub trait ConvexShape {
    // Required method
    fn support(&self, dir: [Real; 3]) -> [Real; 3];
}
Expand description

Trait for convex shapes defined by a support function.

Required Methods§

Source

fn support(&self, dir: [Real; 3]) -> [Real; 3]

Return the support point of the shape in direction dir.

Implementors§