Expand description

Library containing a collection of fixed-size Vectors. These Vectors are useful for use in positional, and dimensional values. There are three built-in Vectors to choose from, the built-in Vectors are the structs Vector2, Vector3, and Vector4.

Example

use fixed_vectors::Vector3;
 
let vec = Vector3::new(1, 2, 3);
let sum = vec.into_iter().sum::<i32>();
assert_eq!(sum, 6);

Structs

A Vector for holding two dimensional-values.

A Vector for holding three dimensional-values.

A Vector for holding four dimensional-values.

Enums

The type returned in Results created by Vector functions.