2024-08-06 06:27:59 +02:00
|
|
|
const std = @import("std");
|
2024-08-06 07:40:20 +02:00
|
|
|
const Vec3 = @import("vector.zig").Vec3;
|
2024-08-06 06:27:59 +02:00
|
|
|
|
|
|
|
pub fn main() !void {
|
2024-08-06 07:40:20 +02:00
|
|
|
const a = Vec3.new(1.0, 2.0, 3.0);
|
|
|
|
const b = Vec3.new(4.0, 5.0, 6.0);
|
|
|
|
const c = a.dot(b);
|
|
|
|
std.debug.print("a dot b = {d}\n", .{c});
|
2024-08-06 06:27:59 +02:00
|
|
|
}
|