Skip to main content

CrossProduct

Trait CrossProduct 

Source
pub trait CrossProduct<Rhs>: Sized {
    type Result;

    // Required method
    fn gcross(&self, rhs: Rhs) -> Self::Result;
}
Expand description

Trait for computing generalized cross products.

Required Associated Types§

Source

type Result

The result type of the cross product.

Required Methods§

Source

fn gcross(&self, rhs: Rhs) -> Self::Result

Computes the generalized cross product of self with rhs.

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.

Implementations on Foreign Types§

Source§

impl CrossProduct<Vec2> for f32

Available on crate feature dim2 only.
Source§

type Result = Vec2

Source§

fn gcross(&self, rhs: Vector) -> Self::Result

Source§

impl<T: SimdRealField + Copy> CrossProduct<Matrix<T, Const<2>, Const<1>, ArrayStorage<T, 2, 1>>> for Vector2<T>

Source§

type Result = T

Source§

fn gcross(&self, rhs: Vector2<T>) -> Self::Result

Source§

impl<T: SimdRealField + Copy> CrossProduct<Matrix<T, Const<3>, Const<1>, ArrayStorage<T, 3, 1>>> for Vector3<T>

Source§

type Result = Matrix<T, Const<3>, Const<1>, ArrayStorage<T, 3, 1>>

Source§

fn gcross(&self, rhs: Vector3<T>) -> Self::Result

Implementors§

Source§

impl CrossProduct<Vec2> for Vector

Available on crate feature dim2 only.
Source§

impl<T: SimdRealField + Copy> CrossProduct<Matrix<T, Const<2>, Const<1>, ArrayStorage<T, 2, 1>>> for T

Source§

type Result = Matrix<T, Const<2>, Const<1>, ArrayStorage<T, 2, 1>>

Source§

impl<T: SimdRealField + Copy> CrossProduct<Matrix<T, Const<3>, Const<1>, ArrayStorage<T, 3, 1>>> for T

Source§

type Result = Matrix<T, Const<3>, Const<1>, ArrayStorage<T, 3, 1>>