diff options
author | 2014-03-12 02:59:55 +0000 | |
---|---|---|
committer | 2014-03-12 02:59:55 +0000 | |
commit | 30531dfb996a1c4b7c1975c7f234bec359b36668 (patch) | |
tree | d5fd391a7f035c100a9cff278a7cb8fe40311e38 /libcgh.h | |
parent | f4832349efdf06d8a1a410c636045f505efb52f1 (diff) | |
download | bullet-lab-remix-30531dfb996a1c4b7c1975c7f234bec359b36668.tar.xz |
Modify ClearRange for level "hyper-threading".
Diffstat (limited to 'libcgh.h')
-rw-r--r-- | libcgh.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -2,7 +2,7 @@ //Chrisoft Game Helper header //Copyright Chrisoft 2014 //libcgh version 0007 -//Last full compatible version 0002 +//Last full compatible version 0007 //^Modify that when big change is made^ #include <hge.h> #include <hgefont.h> @@ -52,13 +52,13 @@ struct vector2d inline vector2d ToUnitCircle(vector2d input) { vector2d res=input; - res.x=res.x/sqrt(sqr(input.x)+sqr(input.y)); - res.y=res.y/sqrt(sqr(input.x)+sqr(input.y)); + res.x=res.x/input.l(); + res.y=res.y/input.l(); return res; } inline double GetDist(const vector2d a,const vector2d b) { - return sqrtf((a.x-b.x)*(a.x-b.x)+(a.y-b.y)*(a.y-b.y)); + return sqrt(sqr(a.x-b.x)+sqr(a.y-b.y)); } inline double GetDistSeg(const vector2d a,const vector2d b,const vector2d c) { |