From 4ba4cb1eb4d047ef887d439c5fa012b6c38a2ed5 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Mon, 21 Feb 2022 15:54:16 -0500 Subject: do a heckin' relocate :3 --- src/spatial.c | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/src/spatial.c b/src/spatial.c index 02a4bf3..e49f668 100644 --- a/src/spatial.c +++ b/src/spatial.c @@ -12,6 +12,28 @@ static inline float dist(xas_spatial_coord a, xas_spatial_coord b) { + powf(b.z - a.z, 2.0f), 0.5f); } +static float dotf(float *sets, size_t count, size_t len) { + float ret = 0.0f; + + size_t x, y; + + if (count == 0 || len == 0) { + return 0.0f; + } + + for (x=0; xradius / scene->speed; -- cgit v1.2.3