summaryrefslogtreecommitdiff
path: root/libs/pwyazh/v2f.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/pwyazh/v2f.h')
-rw-r--r--libs/pwyazh/v2f.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/pwyazh/v2f.h b/libs/pwyazh/v2f.h
index bc09b45..67f9bd2 100644
--- a/libs/pwyazh/v2f.h
+++ b/libs/pwyazh/v2f.h
@@ -9,6 +9,13 @@ v2f(F32 x, F32 y)
}
V2F
+v2fa(F32 x)
+{
+ V2F result = { x, x };
+ return(result);
+}
+
+V2F
v2f_zero()
{
V2F result = { 0.0f, 0.0f };