From b1af66cb2250dc90730a550c15cd4374d2c6d07d Mon Sep 17 00:00:00 2001 From: Judah Caruso Date: Wed, 21 May 2025 12:14:03 -0600 Subject: [PATCH] docs --- TODO | 2 +- math/vec.jai | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/TODO b/TODO index 5ec4c43..3ef1c1f 100644 --- a/TODO +++ b/TODO @@ -7,7 +7,7 @@ [Jesse] 001 [arch] create module to determine simd support 011 [math] add more Vec math procedures - 034 [math] Rect 'Vec(4, T)' type + rectcut + 034 [math] Rect '#type,distinct Vec(4, T)' type + rectcut 002 [math] use simd for Mat4 operations 041 [math] small test suite diff --git a/math/vec.jai b/math/vec.jai index 366f1fe..69ff85a 100644 --- a/math/vec.jai +++ b/math/vec.jai @@ -3,10 +3,13 @@ The values can be accessed via array index or their common component names: - - u, v - - x, y, z, w - - r, g, b, a - - c0, c1, c2, c3, ... cN + - u, v, d + - x, y, z, w + - r, g, b, a + + - x, y, width, height + - min_x, min_y, max_x, max_y + - c0, c1, c2, c3, ... cN For most use cases, opt for the named variants of this type: