math: Add enum for Vector components
This commit is contained in:
parent
c77619045f
commit
f6213a4237
1 changed files with 1 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue