Trait rust_3d::traits::IsBuildableND [] [src]

pub trait IsBuildableND: Sized + IsND {
    fn new_nd(coords: &[f64]) -> Result<Self>;
fn from_nd<P>(&mut self, other: P) -> Result<()>
    where
        P: IsBuildableND
; fn center<P>(&self, other: &P) -> Result<Self>
    where
        P: IsND
, { ... } }

IsBuildableND is a trait used for types which are positioned in n-dimensional space and can be constructed

Required Methods

Should build an object from the correct number of coordinates

Should use the coordinates of another as its own

Provided Methods

Returns the center between this and other

Implementors