Crate vect

Source
Expand description

§vect

Vect is a crate for providing simple and easy to use vectors for use in game development in the style of those found in the Unity game engine.

The library provides three things out of the box: the Vector trait, which contains methods like normalize, lerp, and zero, which are common across all vector implementations; the Vector2 struct, which provides a base-implementation for a 2D vector with f64 fields; and finally Vector3, which provides a base-implementation of a 3D vector, also with f64 fields.

The prelude provides everything you’ll need to get going with the library. Simply do a bulk import and you’re off to the races!

Modules§

prelude
Re-exports everything included in vector2, vector3, and vector into one convenient import.
vector
Trait which encompasses the standard feature set of a vector.
vector2
Standard implementation of a 2D Vector.
vector3
Standard implementation of a 3D Vector.