pub trait IsParallelTo {
// Required method
fn is_parallel_to(&self, vector: &DirectionVector) -> bool;
}Expand description
A trait to check if the current 3D vector is parallel to the DirectionVector. This is especially for serialization on Rotate.
Required Methods§
Sourcefn is_parallel_to(&self, vector: &DirectionVector) -> bool
fn is_parallel_to(&self, vector: &DirectionVector) -> bool
Returns true if this is parallel to the vector.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".