summaryrefslogtreecommitdiff
path: root/libs/pwyazh/v3f.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/pwyazh/v3f.h')
-rw-r--r--libs/pwyazh/v3f.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/pwyazh/v3f.h b/libs/pwyazh/v3f.h
index f1b4ff7..c5a5c1b 100644
--- a/libs/pwyazh/v3f.h
+++ b/libs/pwyazh/v3f.h
@@ -9,6 +9,13 @@ v3f(F32 x, F32 y, F32 z)
}
V3F
+v3fa(F32 x)
+{
+ V3F result = { x, x, x };
+ return(result);
+}
+
+V3F
v3f_from_v4f(V4F a)
{
V3F result = { a.x, a.y, a.z };