diff --git a/src/math/main.zig b/src/math/main.zig index 226eb1c4..8ec2ccfa 100644 --- a/src/math/main.zig +++ b/src/math/main.zig @@ -44,6 +44,7 @@ const testing = std.testing; const vec = @import("vec.zig"); const mat = @import("mat.zig"); const q = @import("quat.zig"); +const ray = @import("ray.zig"); /// Standard f32 precision types pub const Vec2 = vec.Vec(2, f32); @@ -93,6 +94,10 @@ pub const quatd = Quatd.init; pub const mat3x3d = Mat3x3d.init; pub const mat4x4d = Mat4x4d.init; +// Rays in 3 dimensional space +pub const Ray = ray.Ray; +pub const RayHit = ray.RayHit; + test { testing.refAllDeclsRecursive(@This()); } diff --git a/src/testing.zig b/src/testing.zig index b1435db6..5cf15b5c 100644 --- a/src/testing.zig +++ b/src/testing.zig @@ -206,6 +206,7 @@ test { testing.refAllDeclsRecursive(Expect(mach.math.Vec2h)); testing.refAllDeclsRecursive(Expect(mach.math.Vec3)); testing.refAllDeclsRecursive(Expect(mach.math.Vec4d)); + testing.refAllDeclsRecursive(Expect(mach.math.Ray)); // testing.refAllDeclsRecursive(Expect(mach.math.Mat4h)); // testing.refAllDeclsRecursive(Expect(mach.math.Mat4)); // testing.refAllDeclsRecursive(Expect(mach.math.Mat4d));