Crate fixed_vectors
source · [−]Expand description
Library implementing fixed-length Vectors meant for representing dimensional values. Tested heavily to ensure safety during use. Fixed Vectors are used heavily in game development for representing points in space, see the Godot Game Engine documentation on Vector math for written examples here.
Vectors
pub struct Vector2<T> { .. } // Two-dimensional [`Vector`].
pub struct Vector3<T> { .. } // Three-dimensional [`Vector`].
pub struct Vector4<T> { .. } // Four-dimensional [`Vector`].Re-exports
pub use traits::*;Modules
Traits for Vectors that implement very handy and convient functions.
FloatingPointVector for example implements normalized(), which is used heavily in game development.
Macros
Macros for implementing Vector functions & constants in structs.