math: Add Ray type and ray methods to test runner
This commit is contained in:
parent
9399cda75c
commit
24b9a415b3
2 changed files with 6 additions and 0 deletions
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue