Trait rust_3d::traits::IsBuildableND
[−]
[src]
pub trait IsBuildableND: IsND { fn new_nd(coords: &Vec<f64>) -> Result<Box<Self>>; fn from_nd<P>(&mut self, other: P) -> Result<()>
where
P: IsBuildableND; }
IsBuildableND is a trait used for types which are positioned in n-dimensional space and can be constructed
Required Methods
fn new_nd(coords: &Vec<f64>) -> Result<Box<Self>>
Should build an object from the correct number of coordinates
fn from_nd<P>(&mut self, other: P) -> Result<()> where
P: IsBuildableND,
P: IsBuildableND,
Should use the coordinates of another as its own
Implementors
impl IsBuildableND for FilterBox2D
impl IsBuildableND for FilterBox3D
impl IsBuildableND for FilterCircle
impl IsBuildableND for FilterSphere
impl IsBuildableND for Point2D
impl IsBuildableND for Point3D
impl IsBuildableND for Circle
impl IsBuildableND for Box2D
impl IsBuildableND for Sphere
impl IsBuildableND for Box3D