From 2923491791cb93815e920495103f11faaeb25f04 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 16 Apr 2024 22:15:51 +0200 Subject: feat(engine): make vectors implement Copy --- engine/src/data_types/vector.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engine') 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 { pub x: Value, @@ -74,7 +74,7 @@ where } } -#[derive(Debug, Default, Clone)] +#[derive(Debug, Default, Clone, Copy)] #[repr(C)] pub struct Vec3 { -- cgit v1.2.3-18-g5258