Trait geo_nd::Geometry2D
source · 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.