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.

Structs

Struct for the IntoIter trait used by Vectors. Iterator works based off going from the x field to the remaining fields.

Vector Struct for representing a two-dimensional value.

Vector Struct for representing a three-dimensional value.

Vector Struct for representing a four-dimensional value.