From cdf770d6950befd25779a18ea3972deeb9f143bb Mon Sep 17 00:00:00 2001 From: Matthew Kosarek Date: Sun, 25 Apr 2021 15:33:53 -0400 Subject: Rectangle intersection with a line complete --- frontend/shared_cpp/mathlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontend/shared_cpp') 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) { -- cgit v1.2.1