Skip to main content

IsParallelTo

Trait IsParallelTo 

Source
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§

Source

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".

Implementations on Foreign Types§

Source§

impl IsParallelTo for (Number, Number, Number)

Source§

impl IsParallelTo for (Number, Number, Number)

Implementors§