From ffd968a26826108ca9fb23d46ed5789260852eb7 Mon Sep 17 00:00:00 2001 From: Ritabrata Das Date: Wed, 9 Sep 2026 21:07:21 +0530 Subject: intial commit --- lib/standard.hpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 lib/standard.hpp (limited to 'lib/standard.hpp') 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 + +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); -- cgit v1.2.3