diff options
author | Matthew Kosarek <mattkae@protonmail.com> | 2021-04-25 15:33:53 -0400 |
---|---|---|
committer | Matthew Kosarek <mattkae@protonmail.com> | 2021-04-25 15:33:53 -0400 |
commit | cdf770d6950befd25779a18ea3972deeb9f143bb (patch) | |
tree | 00e98c47d572d19b9af78e3e6e21e4fdba2e6319 /frontend/shared_cpp | |
parent | 25e346070eed819f5d08864a3fe37b7a0189d0ba (diff) |
Rectangle intersection with a line complete
Diffstat (limited to 'frontend/shared_cpp')
-rw-r--r-- | frontend/shared_cpp/mathlib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/shared_cpp/mathlib.h b/frontend/shared_cpp/mathlib.h index b9f3fee..a08ec39 100644 --- a/frontend/shared_cpp/mathlib.h +++ b/frontend/shared_cpp/mathlib.h @@ -54,7 +54,7 @@ struct Vector2 { } Vector2 getPerp() { - return { -y, x }; + return { y, -x }; } Vector2 rotate(float angle) { |