[][src]Trait mazth::i_shape::IShape

pub trait IShape: IVicinity<f64> {
    fn get_shape_data(&self) -> Vec<f64>;
fn get_type(&self) -> ShapeType;
fn get_bound(&self) -> &dyn IBound;
fn get_intersect(&self, other: &dyn IShape) -> (bool, Option<Mat3x1<f64>>);
fn get_support(&self, v: &Mat3x1<f64>) -> Option<Mat3x1<f64>>; }

Required methods

fn get_shape_data(&self) -> Vec<f64>

fn get_type(&self) -> ShapeType

fn get_bound(&self) -> &dyn IBound

fn get_intersect(&self, other: &dyn IShape) -> (bool, Option<Mat3x1<f64>>)

fn get_support(&self, v: &Mat3x1<f64>) -> Option<Mat3x1<f64>>

Loading content...

Implementors

impl IShape for Line3[src]

impl IShape for Plane[src]

impl IShape for Point3[src]

impl IShape for Ray3[src]

impl IShape for RecBox[src]

impl IShape for Sphere[src]

impl IShape for TriPrism[src]

Loading content...