pub trait CrossProduct {
// Required method
fn cross(l: &Self, r: &Self) -> Self;
}
Expand description
Trait for computing the cross product of 3D vectors.
The cross product is only defined for 3D vectors and produces a vector perpendicular to both input vectors.
Required Methods§
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.