[][src]Trait rust_3d::IsBuildableND

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 zero_nd() -> Result<Self> { ... }
fn center_nd<P>(&self, other: &P, buffer: &mut Vec<f64>) -> 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

fn new_nd(coords: &[f64]) -> Result<Self>

Should build an object from the correct number of coordinates

fn from_nd<P>(&mut self, other: P) -> Result<()> where
    P: IsBuildableND

Should use the coordinates of another as its own

Loading content...

Provided methods

fn zero_nd() -> Result<Self>

Returns a new object with 0 for all coordinates

fn center_nd<P>(&self, other: &P, buffer: &mut Vec<f64>) -> Result<Self> where
    P: IsND

Returns the center between this and other

Loading content...

Implementors

impl IsBuildableND for Box2D[src]

impl IsBuildableND for Box3D[src]

impl IsBuildableND for Circle[src]

impl IsBuildableND for FilterBox2D[src]

impl IsBuildableND for FilterBox3D[src]

impl IsBuildableND for FilterCircle[src]

impl IsBuildableND for FilterSphere[src]

impl IsBuildableND for Point2D[src]

impl IsBuildableND for Point3D[src]

impl IsBuildableND for Sphere[src]

Loading content...