summaryrefslogtreecommitdiff
path: root/frontend/shared_cpp
diff options
context:
space:
mode:
authorMatthew Kosarek <mattkae@protonmail.com>2021-04-25 15:33:53 -0400
committerMatthew Kosarek <mattkae@protonmail.com>2021-04-25 15:33:53 -0400
commitcdf770d6950befd25779a18ea3972deeb9f143bb (patch)
tree00e98c47d572d19b9af78e3e6e21e4fdba2e6319 /frontend/shared_cpp
parent25e346070eed819f5d08864a3fe37b7a0189d0ba (diff)
Rectangle intersection with a line complete
Diffstat (limited to 'frontend/shared_cpp')
-rw-r--r--frontend/shared_cpp/mathlib.h2
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) {