DotProduct

Trait DotProduct 

Source
pub trait DotProduct<T = Self>: VectorSpace {
    type Output;

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

This trait defines the dot product.

Required Associated Types§

Source

type Output

The output type of the dot product.

Required Methods§

Source

fn dot(self, other: T) -> <Self as DotProduct<T>>::Output

The dot product.

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.

Implementations on Foreign Types§

Source§

impl DotProduct for f32

Source§

type Output = f32

Source§

fn dot(self, other: Self) -> f32

Source§

impl DotProduct for f64

Source§

type Output = f64

Source§

fn dot(self, other: Self) -> f64

Implementors§