Trait Dot

Source
pub trait Dot<S: Ring>: Module<S> {
    // Required method
    fn dot(self, other: Self) -> S;

    // Provided method
    fn self_dot(self) -> S { ... }
}
Expand description

Scalar product (bilinear form) on a Module

Required Methods§

Source

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

Provided Methods§

Source

fn self_dot(self) -> S

Self 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<S, U> Dot<S> for Displacement2<S, U>
where Vector2<S>: Dot<S>, S: Ring,

Source§

impl<S, U> Dot<S> for Displacement3<S, U>
where Vector3<S>: Dot<S>, S: Ring,

Source§

impl<S, U> Dot<S> for Displacement4<S, U>
where Vector4<S>: Dot<S>, S: Ring,

Source§

impl<S: Ring> Dot<S> for Vector2<S>

Source§

impl<S: Ring> Dot<S> for Vector3<S>

Source§

impl<S: Ring> Dot<S> for Vector4<S>