Trait Cross

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

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

The vector cross product.

Required Associated Types§

Source

type Output

The type of the result of the cross product.

Required Methods§

Source

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

Performs the cross product.

Implementations on Foreign Types§

Source§

impl Cross<Vec2> for f32

Source§

type Output = Vec2

Source§

fn cross(self, other: Vec2) -> Vec2

Source§

impl<'a> Cross<Vec2> for &'a f32

Source§

type Output = Vec2

Source§

fn cross(self, other: Vec2) -> Vec2

Source§

impl<'a, 'b> Cross<&'b Vec2> for &'a f32

Source§

type Output = Vec2

Source§

fn cross(self, other: &'b Vec2) -> Vec2

Source§

impl<'b> Cross<&'b Vec2> for f32

Source§

type Output = Vec2

Source§

fn cross(self, other: &'b Vec2) -> Vec2

Implementors§

Source§

impl Cross for Vec2

Source§

impl Cross<f32> for Vec2

Source§

impl<'a> Cross<f32> for &'a Vec2

Source§

impl<'a> Cross<Vec2> for &'a Vec2

Source§

impl<'a, 'b> Cross<&'b f32> for &'a Vec2

Source§

impl<'a, 'b> Cross<&'b Vec2> for &'a Vec2

Source§

impl<'b> Cross<&'b f32> for Vec2

Source§

impl<'b> Cross<&'b Vec2> for Vec2