alloy::ops

Trait Cross

source
pub trait Cross<Rhs: ?Sized = Self> {
    type Output;

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

Performs the cross-product

Required Associated Types§

source

type Output

The output type of the Cross operation

Required Methods§

source

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

Computes the cross-product of two values, and returns the result.

§Parameters
  • other - the other value to compute the cross-product with

Implementors§