aboutsummaryrefslogtreecommitdiff
path: root/src/math/vec2.rs
diff options
context:
space:
mode:
authorArne Dußin2020-11-17 20:59:50 +0100
committerArne Dußin2020-11-17 20:59:50 +0100
commitcc253346c52425bea2ca9919de87e7cfa5ecea97 (patch)
tree320005ee77728851b5934caedd50c8ebf7939706 /src/math/vec2.rs
parent63f292010e51ad8622cccc4d4b6da887e4eaec47 (diff)
downloadgraf_karto-cc253346c52425bea2ca9919de87e7cfa5ecea97.tar.gz
graf_karto-cc253346c52425bea2ca9919de87e7cfa5ecea97.zip
Add polygon graph
Diffstat (limited to 'src/math/vec2.rs')
-rw-r--r--src/math/vec2.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math/vec2.rs b/src/math/vec2.rs
index 2b33f7b..cd38889 100644
--- a/src/math/vec2.rs
+++ b/src/math/vec2.rs
@@ -8,7 +8,7 @@ use std::convert::{From, Into};
use std::ops::{Add, AddAssign, Div, Mul, MulAssign, Neg, Sub, SubAssign};
use std::{fmt, mem};
-#[derive(Clone, Copy, Debug, Default, PartialEq, Serialize, Deserialize, Eq)]
+#[derive(Clone, Copy, Debug, Default, PartialEq, Serialize, Deserialize, Eq, Hash)]
pub struct Vec2<T: Scalar + Copy> {
pub x: T,
pub y: T,