From f6213a423707c88d21af933ef8539cf89e61b14d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joel=20D=2E=20Sch=C3=BCller?= Date: Sat, 23 Sep 2023 23:32:35 +0200 Subject: [PATCH] math: Add enum for Vector components --- src/math/vec.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/math/vec.zig b/src/math/vec.zig index 338c08e8..0d92c7ae 100644 --- a/src/math/vec.zig +++ b/src/math/vec.zig @@ -4,6 +4,7 @@ const mach = @import("../main.zig"); const testing = mach.testing; const math = mach.math; +pub const VecComponent = enum { x, y, z, w }; pub fn Vec(comptime n_value: usize, comptime Scalar: type) type { return extern struct { v: Vector,