foo
[erebus2020] / liberebus / src / util.c
diff --git a/liberebus/src/util.c b/liberebus/src/util.c
new file mode 100644 (file)
index 0000000..a52f35a
--- /dev/null
@@ -0,0 +1,7 @@
+#include "erebus.h"
+
+void erb_xform_ray(struct erb_ray *ray, float *mat)
+{
+       cgm_vmul_m4v3(&ray->o, mat);
+       cgm_vmul_m3v3(&ray->d, mat);
+}