pub trait IsBuildable3D:
Sized
+ Is3D
+ Eq
+ PartialEq
+ Ord
+ PartialOrd
+ Hash {
// Required methods
fn new(x: f64, y: f64, z: f64) -> Self;
fn from<P>(&mut self, other: &P)
where P: Is3D;
// Provided methods
fn new_from<P>(other: &P) -> Self
where P: Is3D { ... }
fn multiply_m(&self, m: &Matrix4) -> Self { ... }
fn normalized(&self) -> Result<Self> { ... }
fn zero() -> Self { ... }
fn parse(text: &str) -> Result<Self> { ... }
fn center<P>(&self, other: &P) -> Self
where P: Is3D { ... }
}Expand description
IsBuildable3D is a trait used for types which are positioned in 3D space and can be constructed
Required Methods§
Provided Methods§
Sourcefn multiply_m(&self, m: &Matrix4) -> Self
fn multiply_m(&self, m: &Matrix4) -> Self
Applies a matrix to this
Sourcefn normalized(&self) -> Result<Self>
fn normalized(&self) -> Result<Self>
Returns this with normalized values
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".