aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/util')
-rw-r--r--src/crepe/util/AbsoluutPosition.cpp3
-rw-r--r--src/crepe/util/AbsoluutPosition.h5
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