Cross

Trait Cross 

Source
pub trait Cross<Rhs = Self> {
    type Output;

    // Required method
    fn cross(self, rhs: Rhs) -> Self::Output;
}
Expand description

Perform the cross product of vectors

Required Associated Types§

Required Methods§

Source

fn cross(self, rhs: Rhs) -> Self::Output

Implementors§

Source§

impl<T> Cross for Vec3<T>
where T: Add<Output = T> + Mul<Output = T> + Sub<Output = T> + Copy,

Source§

impl<T> Cross<&Vec3<T>> for &Vec3<T>
where T: Add<Output = T> + Mul<Output = T> + Sub<Output = T> + Copy,

Source§

impl<T> Cross<&Vec3<T>> for Vec3<T>
where T: Add<Output = T> + Mul<Output = T> + Sub<Output = T> + Copy,

Source§

impl<T> Cross<Vec3<T>> for &Vec3<T>
where T: Add<Output = T> + Mul<Output = T> + Sub<Output = T> + Copy,