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

Should build an object from x, y and z coordinates

Should use the coordinates of another as its own

Provided Methods

Applies a matrix to this

Returns this with normalized values

Creates this from a "x y z" string. E.g. "32.2 14.7 1.90"

Implementors