diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-13 19:32:14 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-13 19:32:14 +0100 |
commit | 56cf219a25e66f38c50a51afd01ed515de149711 (patch) | |
tree | 016293d4e13fa2e141a960062e005b608ccecebf /src/crepe/api/Vector2.cpp | |
parent | d69f1642cb397d68d591718f83028e14620ab340 (diff) | |
parent | 0b2ca3c323c7f73d031e7014ba0a17dcf0b59751 (diff) |
merge `jaro/particle-system-master` into `loek/cleanup` early
Diffstat (limited to 'src/crepe/api/Vector2.cpp')
-rw-r--r-- | src/crepe/api/Vector2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crepe/api/Vector2.cpp b/src/crepe/api/Vector2.cpp index 7da202a..97b74ac 100644 --- a/src/crepe/api/Vector2.cpp +++ b/src/crepe/api/Vector2.cpp @@ -10,7 +10,7 @@ Vector2 Vector2::operator+(const Vector2 & other) const { return {x + other.x, y + other.y}; } -Vector2 Vector2::operator*(float scalar) const { +Vector2 Vector2::operator*(double scalar) const { return {x * scalar, y * scalar}; } @@ -26,7 +26,7 @@ Vector2 & Vector2::operator+=(const Vector2 & other) { return *this; } -Vector2 & Vector2::operator+=(float other) { +Vector2 & Vector2::operator+=(double other) { x += other; y += other; return *this; |