From a00c0aab1eb5a7a55bef8ca08115bdd722ab5699 Mon Sep 17 00:00:00 2001 From: Matthew Kosarek Date: Sun, 16 May 2021 19:50:15 -0400 Subject: Moved the frontend directory up so that it no longer exists --- shared_cpp/mathlib.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 shared_cpp/mathlib.cpp (limited to 'shared_cpp/mathlib.cpp') diff --git a/shared_cpp/mathlib.cpp b/shared_cpp/mathlib.cpp new file mode 100644 index 0000000..8222d00 --- /dev/null +++ b/shared_cpp/mathlib.cpp @@ -0,0 +1,11 @@ +#include "mathlib.h" +#include + +Vector2 getRandomNormalVector2() { + Vector2 retval = { + static_cast(rand()) / static_cast(RAND_MAX), + static_cast(rand()) / static_cast(RAND_MAX) + }; + + return retval.normalize(); +} -- cgit v1.2.1