CrossProduct

Trait CrossProduct 

Source
pub trait CrossProduct {
    // Required method
    fn cross(&self, rhs: &Self) -> Self;
}
Expand description

This type can be used to produce a cross product

Required Methods§

Source

fn cross(&self, rhs: &Self) -> Self

Produce the cross product of self and rhs

§Note

This can only really be implemented for a 3 component vector but is a trait to allow for separating storage from implementation

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§