From 70ac042b7d69d1e9113fc6835859059040074edb Mon Sep 17 00:00:00 2001 From: Tom Barrett Date: Fri, 16 Dec 2022 18:38:01 +0100 Subject: v10 --- src/main.zig | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src') diff --git a/src/main.zig b/src/main.zig index ffaf130..6801150 100644 --- a/src/main.zig +++ b/src/main.zig @@ -142,19 +142,19 @@ pub fn scale_cube(cube: Cube, scale: f32) Cube { pub fn draw_axis(arena: *ArenaAllocator, instance: sdl.instance) void { var o = center_point( - project_point(arena, Point{ .x = 00, .y = 00, .z = 00 }), + project_point(arena, Point{ .x = 0, .y = 0, .z = 0 }), 250, ); var x = center_point( - project_point(arena, Point{ .x = 50, .y = 00, .z = 00 }), + project_point(arena, Point{ .x = 50, .y = 0, .z = 0 }), 250, ); var y = center_point( - project_point(arena, Point{ .x = 00, .y = 50, .z = 00 }), + project_point(arena, Point{ .x = 0, .y = 50, .z = 0 }), 250, ); var z = center_point( - project_point(arena, Point{ .x = 00, .y = 00, .z = 50 }), + project_point(arena, Point{ .x = 0, .y = 0, .z = 50 }), 250, ); @@ -173,13 +173,13 @@ pub fn main() anyerror!void { const unit_cube = Cube{ .points = [8]Point{ - Point{ .x = 01, .y = 01, .z = 01 }, - Point{ .x = 01, .y = 01, .z = -1 }, - Point{ .x = 01, .y = -1, .z = 01 }, - Point{ .x = 01, .y = -1, .z = -1 }, - Point{ .x = -1, .y = 01, .z = 01 }, - Point{ .x = -1, .y = 01, .z = -1 }, - Point{ .x = -1, .y = -1, .z = 01 }, + Point{ .x = 1, .y = 1, .z = 1 }, + Point{ .x = 1, .y = 1, .z = -1 }, + Point{ .x = 1, .y = -1, .z = 1 }, + Point{ .x = 1, .y = -1, .z = -1 }, + Point{ .x = -1, .y = 1, .z = 1 }, + Point{ .x = -1, .y = 1, .z = -1 }, + Point{ .x = -1, .y = -1, .z = 1 }, Point{ .x = -1, .y = -1, .z = -1 }, }, }; -- cgit v1.2.3