Trait Dot

Source
pub trait Dot<T> {
    // Required method
    fn dot(a: Self, b: Self) -> T;
}
Expand description

trait for dot product

Required Methods§

Source

fn dot(a: Self, b: Self) -> T

vector 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.

Implementors§

Source§

impl<T> Dot<T> for Quat<T>
where T: Float + FloatOps<T>,

Source§

impl<T> Dot<T> for Vec2<T>
where T: Number,

Source§

impl<T> Dot<T> for Vec3<T>
where T: Number,

Source§

impl<T> Dot<T> for Vec4<T>
where T: Number,