summaryrefslogtreecommitdiffstats
path: root/core/math/vector2.h
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2020-04-20 18:24:17 -0400
committerAaron Franke <arnfranke@yahoo.com>2020-04-21 14:06:41 -0400
commit23a349c427225060928b27f531a1e832a26c92e5 (patch)
tree554fdfbb8efcc16259646121078b665c03db38e2 /core/math/vector2.h
parentcb1ae08c14e02ce29fb71ae40ae657f1d30a0422 (diff)
downloadredot-engine-23a349c427225060928b27f531a1e832a26c92e5.tar.gz
Improve the Vector2 rotated code
Diffstat (limited to 'core/math/vector2.h')
-rw-r--r--core/math/vector2.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/core/math/vector2.h b/core/math/vector2.h
index ba5558102f..95d2474838 100644
--- a/core/math/vector2.h
+++ b/core/math/vector2.h
@@ -123,12 +123,6 @@ struct Vector2 {
real_t angle() const;
- void set_rotation(real_t p_radians) {
-
- x = Math::cos(p_radians);
- y = Math::sin(p_radians);
- }
-
_FORCE_INLINE_ Vector2 abs() const {
return Vector2(Math::abs(x), Math::abs(y));