Skip to main content

CrossProduct

Trait CrossProduct 

Source
pub trait CrossProduct<Rhs = Self>: CoordinatePrimitive {
    type Output;

    // Required method
    fn cross(&self, rhs: &Rhs) -> <Self as CrossProduct<Rhs>>::Output;
}
Expand description

Computes a cross product between two values.

Required Associated Types§

Source

type Output

Output type produced by the cross product.

Required Methods§

Source

fn cross(&self, rhs: &Rhs) -> <Self as CrossProduct<Rhs>>::Output

Computes the cross product.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§