From ae44478b30d890fe0fb04022f44d474dcdcc3f9d Mon Sep 17 00:00:00 2001 From: Lassi Pulkkinen Date: Thu, 31 Oct 2024 03:11:21 +0200 Subject: Initial commit (import old repo) --- glm/v2.ha | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 glm/v2.ha (limited to 'glm/v2.ha') 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]; +}; -- cgit v1.2.3