Skip to main content

Dot

Trait Dot 

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

    // Provided method
    fn self_dot(self) -> NonNegative<S>
       where S: OrderedRing { ... }
}
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) -> NonNegative<S>
where S: OrderedRing,

Self dot product

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<S, U> Dot<S> for Displacement2<S, U>
where S: Ring, U: Debug, Vector2<S>: Dot<S>,

Source§

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

Source§

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

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>