Skip to content

Commit

Permalink
Added macro for degrees to radians conversions (and vice versa).
Browse files Browse the repository at this point in the history
  • Loading branch information
Chukobyte committed Jan 6, 2024
1 parent 4ccb7e2 commit 4230340
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion seika/math/se_math.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ extern "C" {
#include "../utils/se_macro_util.h"

#define SKA_PI 3.14159265358979323846f
#define SKA_RAD_2_DEG (180.0f / SKA_PI)
#define SKA_RAD_2_DEG(RADIANS) ((RADIANS) * 0.0174532925)
#define SKA_RAD_2_DEGF(RADIANS) ((RADIANS) * 0.0174532925f)
#define SKA_DEG_2_RAD(DEGREES) ((DEGREES) * 57.2957795)
#define SKA_DEG_2_RADF(DEGREES) ((DEGREES) * 57.2957795f)


// --- SKAVector2 --- //
typedef struct SKAVector2 {
Expand Down
2 changes: 1 addition & 1 deletion vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "seika",
"version": "0.0.21",
"version": "0.0.22",
"dependencies": [
{
"name": "sdl2",
Expand Down

0 comments on commit 4230340

Please sign in to comment.