[][src]Trait building_blocks::prelude::DotProduct

pub trait DotProduct {
    type Scalar: Copy;
    fn dot(&self, other: &Self) -> Self::Scalar;
}

Associated Types

type Scalar: Copy

Loading content...

Required methods

fn dot(&self, other: &Self) -> Self::Scalar

The vector dot product.

Loading content...

Implementors

impl<T> DotProduct for PointN<[T; 2]> where
    T: Add<T, Output = T> + Mul<T, Output = T> + Copy
[src]

type Scalar = T

impl<T> DotProduct for PointN<[T; 3]> where
    T: Add<T, Output = T> + Mul<T, Output = T> + Copy
[src]

type Scalar = T

Loading content...