Crate vector_space

Crate vector_space 

Source
Expand description

This crate contains traits for working with vector spaces.

You can also define some library in terms of these traits instead of using a specific vector math implementation, so the user can choose, which one to use, or simply add multiple vector math libraries which implement these traits yourself by using this library.

Traits§

AffineSpace
Marker trait for affine spaces, types whose differences are vectors.
VectorSpace
This trait specifies some type to be a vector type. It specifies the scalar type and is required for other vector types.
VectorSpaceAssign
This trait is automatically implemented for vector spaces, which also implement assignment operations.

Functions§

interpolate
Linear interpolation of two points.