summaryrefslogtreecommitdiff
path: root/engine/src/data_types
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-04-16 22:15:51 +0200
committerHampusM <hampus@hampusmat.com>2024-04-16 22:15:51 +0200
commit2923491791cb93815e920495103f11faaeb25f04 (patch)
treedb82a81e11dd354e95e2efcf153a196b1a5e4172 /engine/src/data_types
parent9778d9668f8b5d651aaed1f64414f7ed195d153d (diff)
feat(engine): make vectors implement Copy
Diffstat (limited to 'engine/src/data_types')
-rw-r--r--engine/src/data_types/vector.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/src/data_types/vector.rs b/engine/src/data_types/vector.rs
index 5b7779c..17953f4 100644
--- a/engine/src/data_types/vector.rs
+++ b/engine/src/data_types/vector.rs
@@ -2,7 +2,7 @@ use std::ops::{Add, AddAssign, Div, Mul, Neg, Sub, SubAssign};
use crate::color::Color;
-#[derive(Debug, Default, Clone)]
+#[derive(Debug, Default, Clone, Copy)]
pub struct Vec2<Value>
{
pub x: Value,
@@ -74,7 +74,7 @@ where
}
}
-#[derive(Debug, Default, Clone)]
+#[derive(Debug, Default, Clone, Copy)]
#[repr(C)]
pub struct Vec3<Value>
{