diff --git a/Cargo.toml b/Cargo.toml index d49f7dc..3d7b903 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "swift_vec" -version = "0.4.0" +version = "0.4.1" edition = "2021" exclude = [ ".github/*", diff --git a/src/mat/mat3.rs b/src/mat/mat3.rs index f9f29de..c5ac174 100644 --- a/src/mat/mat3.rs +++ b/src/mat/mat3.rs @@ -112,7 +112,7 @@ impl IndexMut for Mat3 { /// A 3x3 row-majory matrix which can be used to describe 3D transformations in computer graphics. /// More specifically, it can be used to descrive the shear (local position), rotation, and scale of an object in /// 3D space. -#[derive(Debug, Clone, PartialEq, Eq, PartialOrd)] +#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Hash)] #[repr(C)] pub struct Mat3 { pub x: Vec3, diff --git a/src/vector/v2d.rs b/src/vector/v2d.rs index f9fa5e0..07fa57e 100644 --- a/src/vector/v2d.rs +++ b/src/vector/v2d.rs @@ -88,7 +88,7 @@ impl IndexMut for Vec2 { /// A 2D Vector with an X and Y component. /// Contains behaviours and methods for allowing for algebraic, geometric, and trigonometric operations, /// as well as interpolation and other common vector operations. -#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd)] +#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Hash)] #[repr(C)] pub struct Vec2(pub T, pub T); diff --git a/src/vector/v3d.rs b/src/vector/v3d.rs index a78faee..679e1fe 100644 --- a/src/vector/v3d.rs +++ b/src/vector/v3d.rs @@ -120,7 +120,7 @@ impl SignedAxis3 { /// A 3D Vector with an X, Y and Z component. /// Contains behaviours and methods for allowing for algebraic, geometric, and trigonometric operations, /// as well as interpolation and other common vector operations. -#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd)] +#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Hash)] #[repr(C)] pub struct Vec3(pub T, pub T, pub T);