Trait geo_nd::Geometry2D[][src]

pub trait Geometry2D<Scalar: Float> {
    type Vec2: Vector<Scalar, 2>;
    type Mat2: SqMatrix<Self::Vec2, Scalar, 2, 4>;
}
Expand description

This is an experimental trait - it bundles together a Vec2 and a Mat2.

The Geometry2D trait supplies a framework for implementing 2D vector and matrix operations.

Associated Types

The type of a 2D vector

The type of a 2D matrix that can transform a Vec2

Implementations on Foreign Types

Implementors