Trait nphysics2d::utils::GeneralizedCross [] [src]

pub trait GeneralizedCross {
    type CrossVector;
    type CrossMatrix;
    fn gcross(&self, rhs: &Self) -> Self::CrossVector;
fn gcross_matrix(&self) -> Self::CrossMatrix; }

This is a non-standard generalization of the cross product design exclusively to group the 3D cross product and the 2D perpendicular product behind the same interface.

Associated Types

The result type of the this (non-standard) generalized cross product.

The matrix representation of this (non-standard) generalized cross product.

Required Methods

Computes this (non-standard) generalized cross product.

Computes the matrix represenattion of this (non-standard) generalized cross product.

Implementors