Crate vector_space[][src]

Expand description

This crate contains new traits useful for working with vector spaces. They have default implementations, so you can just implement them to get a lot of useful methods for free for your vector type. But you can also just implement the methods yourself.

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

This trait defines the dot product.

This trait defines the dot product and adds commom vector operations.

This trait specifies some type to be a vector type. It specifies the scalar type and is required for other vector types.