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: