Trait maths_rs::vec::Cross

source ·
pub trait Cross<T> {
    // Required method
    fn cross(a: Self, b: Self) -> Self;
}
Expand description

trait for cross product, this is implemented for Vec3

Required Methods§

source

fn cross(a: Self, b: Self) -> Self

vector cross-product

Implementors§

source§

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