Skip to main content

Triple

Trait Triple 

Source
pub trait Triple<T> {
    // Required methods
    fn scalar_triple(a: Self, b: Self, c: Self) -> T;
    fn vector_triple(a: Self, b: Self, c: Self) -> Self;
}
Expand description

trait for scalar and vector triple products

Required Methods§

Source

fn scalar_triple(a: Self, b: Self, c: Self) -> T

scalar triple product

Source

fn vector_triple(a: Self, b: Self, c: Self) -> Self

vector triple product

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<T> Triple<T> for Vec2<T>
where T: Number + SignedNumber,

2D triple product specialisation, leveraging z-axis

Source§

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

3D triple products