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", so this trait is not object safe.

Implementors§

Source§

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

2D triple product specialisation, levearging z-axis

Source§

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

3D triple products