From d494ab15189bd67ea816d3ff3474d19bc258abc5 Mon Sep 17 00:00:00 2001
From: treeform <starplant@gmail.com>
Date: Mon, 7 Jan 2019 08:59:11 -0800
Subject: [PATCH] fix sin/cos issue.

---
 src/vmath.nim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/vmath.nim b/src/vmath.nim
index 4384620..edd89bd 100644
--- a/src/vmath.nim
+++ b/src/vmath.nim
@@ -98,7 +98,7 @@ proc dir*(at: Vec2, to: Vec2): Vec2 =
   result = (at - to).normalize()
 
 proc dir*(th: float32): Vec2 =
-  vec2(sin(th), cos(th))
+  vec2(cos(th), sin(th))
 
 proc dist*(at: Vec2, to: Vec2): float32 =
   (at - to).length