Trait rust_3d::traits::IsBuildable3D
[−]
[src]
pub trait IsBuildable3D: Sized + Is3D + Eq + PartialEq + Ord + PartialOrd + Hash { fn new(x: f64, y: f64, z: f64) -> Self; fn from<P>(&mut self, other: P)
where
P: Is3D; fn multiply_m(&self, m: &Matrix4) -> Self { ... } fn normalized(&self) -> Result<Self> { ... } fn parse(text: String) -> Result<Self> { ... } }
IsBuildable3D is a trait used for types which are positioned in 3D space and can be constructed
Required Methods
fn new(x: f64, y: f64, z: f64) -> Self
Should build an object from x, y and z coordinates
fn from<P>(&mut self, other: P) where
P: Is3D,
P: Is3D,
Should use the coordinates of another as its own
Provided Methods
fn multiply_m(&self, m: &Matrix4) -> Self
Applies a matrix to this
fn normalized(&self) -> Result<Self>
Returns this with normalized values
fn parse(text: String) -> Result<Self>
Creates this from a "x y z" string. E.g. "32.2 14.7 1.90"
Implementors
impl IsBuildable3D for FilterBox3D
impl IsBuildable3D for FilterSphere
impl IsBuildable3D for Point3D
impl IsBuildable3D for Sphere
impl IsBuildable3D for Box3D