Skip to main content

DotProduct

Trait DotProduct 

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

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

Computes a dot product between two values.

Required Associated Types§

Source

type Output

Output type produced by the dot product.

Required Methods§

Source

fn dot(&self, rhs: &Rhs) -> <Self as DotProduct<Rhs>>::Output

Computes the dot product.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§