summaryrefslogtreecommitdiff
path: root/glm/v2.ha
diff options
context:
space:
mode:
authorLassi Pulkkinen <lassi@pulk.fi>2024-10-31 03:11:21 +0200
committerLassi Pulkkinen <lassi@pulk.fi>2024-10-31 03:51:35 +0200
commitae44478b30d890fe0fb04022f44d474dcdcc3f9d (patch)
tree5f462459ae4b47d22114eed717d1382d08cf4dfe /glm/v2.ha
Initial commit (import old repo)HEADmain
Diffstat (limited to 'glm/v2.ha')
-rw-r--r--glm/v2.ha10
1 files changed, 10 insertions, 0 deletions
diff --git a/glm/v2.ha b/glm/v2.ha
new file mode 100644
index 0000000..d8b5d51
--- /dev/null
+++ b/glm/v2.ha
@@ -0,0 +1,10 @@
+export def V2_ZERO: v2 = [0.0, 0.0];
+export def V2_ONE: v2 = [1.0, 1.0];
+
+export fn v2_new(x: f32, y: f32) v2 = {
+ return [x, y];
+};
+
+export fn v2_new_fill(x: f32) v2 = {
+ return [x, x];
+};