diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2024-12-16 21:22:35 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2024-12-16 21:22:35 +0100 |
commit | 5bece30f9ad495a0e82097b2c5668e979856fb69 (patch) | |
tree | 82d897004f17dfe06f6453ebc9f244ed0d4d53a7 /src/crepe/util | |
parent | ea7beae5974838b6e1727c539b0899ad157bc1fb (diff) |
make format
Diffstat (limited to 'src/crepe/util')
-rw-r--r-- | src/crepe/util/AbsoluutPosition.cpp | 3 | ||||
-rw-r--r-- | src/crepe/util/AbsoluutPosition.h | 5 |
2 files changed, 2 insertions, 6 deletions
diff --git a/src/crepe/util/AbsoluutPosition.cpp b/src/crepe/util/AbsoluutPosition.cpp index 8be625e..296cc09 100644 --- a/src/crepe/util/AbsoluutPosition.cpp +++ b/src/crepe/util/AbsoluutPosition.cpp @@ -2,7 +2,7 @@ using namespace crepe; -vec2 AbsoluutPosition::get_position(const Transform & transform,const vec2 & offset) { +vec2 AbsoluutPosition::get_position(const Transform & transform, const vec2 & offset) { // Get the rotation in radians float radians1 = transform.rotation * (M_PI / 180.0); @@ -18,4 +18,3 @@ vec2 AbsoluutPosition::get_position(const Transform & transform,const vec2 & off // Final positions considering scaling and rotation return (transform.position + vec2(rotated_total_offset_x1, rotated_total_offset_y1)); } - diff --git a/src/crepe/util/AbsoluutPosition.h b/src/crepe/util/AbsoluutPosition.h index 4441f90..30a7f93 100644 --- a/src/crepe/util/AbsoluutPosition.h +++ b/src/crepe/util/AbsoluutPosition.h @@ -1,17 +1,14 @@ #pragma once - #include "api/Transform.h" #include "types.h" namespace crepe { - class AbsoluutPosition { public: - static vec2 get_position(const Transform & transform,const vec2 & offset); - + static vec2 get_position(const Transform & transform, const vec2 & offset); }; } // namespace crepe |