math: Add enum for Vector components

This commit is contained in:
Joel D. Schüller 2023-09-23 23:32:35 +02:00 committed by Stephen Gutekanst
parent c77619045f
commit f6213a4237

View file

@ -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,