summaryrefslogtreecommitdiff
path: root/lib/standard.hpp
diff options
context:
space:
mode:
authorRitabrata Das <[email protected]>2026-09-09 21:07:21 +0530
committerRitabrata Das <[email protected]>2026-09-09 21:07:21 +0530
commitffd968a26826108ca9fb23d46ed5789260852eb7 (patch)
tree3861d08dae1c28f547952dbcc16e04ae7b5286b5 /lib/standard.hpp
intial commit
Diffstat (limited to 'lib/standard.hpp')
-rw-r--r--lib/standard.hpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/standard.hpp b/lib/standard.hpp
new file mode 100644
index 0000000..dc2ec75
--- /dev/null
+++ b/lib/standard.hpp
@@ -0,0 +1,14 @@
+#pragma once
+#include "gameState.hpp"
+#include <raylib.h>
+
+float maxOfTwo(float a, float b);
+float minOfTwo(float a, float b);
+float genRandBw(float min, float max);
+Vector2 rotatePoint(Vector2 point, Vector2 pivot, float angleDegree);
+Vector2 C2SProj(Vector2 cartesian_cordinates, Vector4 rectangle_space, Vector2 object_size = {0, 0}, Vector2 absolute_deviation_bias={0,0},bool use_clamp = true);
+float S2CYaxis(float yValue, Vector4 rectangle_space);
+float S2CXaxis(float xValue, Vector4 rectangle_space);
+void newGame(GameState& gs);
+bool returnTrueProbPerc(float percentageTrue);
+Vector2 ScreenToVirtual(Vector2 screenPos, Vector2 offset, float scale);