Skip to content

Commit

Permalink
Added Hash Support
Browse files Browse the repository at this point in the history
  • Loading branch information
LunaticWyrm467 committed Jun 16, 2024
1 parent cbe35b8 commit 2cf2d65
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "swift_vec"
version = "0.4.0"
version = "0.4.1"
edition = "2021"
exclude = [
".github/*",
Expand Down
2 changes: 1 addition & 1 deletion src/mat/mat3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ impl <T: Scalar> IndexMut<Axis3> for Mat3<T> {
/// 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<T: Scalar> {
pub x: Vec3<T>,
Expand Down
2 changes: 1 addition & 1 deletion src/vector/v2d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ impl <T: Scalar> IndexMut<Axis2> for Vec2<T> {
/// 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<T: Scalar>(pub T, pub T);

Expand Down
2 changes: 1 addition & 1 deletion src/vector/v3d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T: Scalar>(pub T, pub T, pub T);

Expand Down

0 comments on commit 2cf2d65

Please sign in to comment.