Skip to main content

CrossProductMatrix

Trait CrossProductMatrix 

Source
pub trait CrossProductMatrix: Sized {
    type CrossMat;
    type CrossMatTr;

    // Required methods
    fn gcross_matrix(self) -> Self::CrossMat;
    fn gcross_matrix_tr(self) -> Self::CrossMatTr;
}
Expand description

Trait for computing cross product matrices.

Required Associated Types§

Source

type CrossMat

The cross product matrix type.

Source

type CrossMatTr

The transposed cross product matrix type.

Required Methods§

Source

fn gcross_matrix(self) -> Self::CrossMat

Returns the cross product matrix of this vector.

Source

fn gcross_matrix_tr(self) -> Self::CrossMatTr

Returns the transposed cross product matrix of this vector.

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 CrossProductMatrix for f32

Source§

impl<N: SimdRealCopy> CrossProductMatrix for Vector2<N>

Source§

type CrossMat = Matrix<N, Const<2>, Const<1>, ArrayStorage<N, 2, 1>>

Source§

type CrossMatTr = Matrix<N, Const<2>, Const<1>, ArrayStorage<N, 2, 1>>

Source§

fn gcross_matrix(self) -> Self::CrossMat

Source§

fn gcross_matrix_tr(self) -> Self::CrossMatTr

Source§

impl<N: SimdRealCopy> CrossProductMatrix for Vector3<N>

Source§

type CrossMat = Matrix<N, Const<3>, Const<3>, ArrayStorage<N, 3, 3>>

Source§

type CrossMatTr = Matrix<N, Const<3>, Const<3>, ArrayStorage<N, 3, 3>>

Source§

fn gcross_matrix(self) -> Self::CrossMat

Source§

fn gcross_matrix_tr(self) -> Self::CrossMatTr

Implementors§

Source§

impl CrossProductMatrix for Vector

Available on crate feature dim2 only.