aboutsummaryrefslogtreecommitdiff
path: root/libcgh.h
diff options
context:
space:
mode:
authorGravatar chirs241097@gmail.com <chirs241097@gmail.com@c17bf020-1265-9734-9302-a83f62007ddb> 2014-03-04 03:11:48 +0000
committerGravatar chirs241097@gmail.com <chirs241097@gmail.com@c17bf020-1265-9734-9302-a83f62007ddb> 2014-03-04 03:11:48 +0000
commit1d05051ab16b2012c08f0405b4754f421aae4cf3 (patch)
tree333aa24e681d333db28b7358dd7e01af986ed2be /libcgh.h
parent4f062725e3d2d104a40432b341ae2345ade5cfca (diff)
downloadbullet-lab-remix-1d05051ab16b2012c08f0405b4754f421aae4cf3.tar.xz
New level, remove more comments, more interfaces...
I'm now preparing for the next public pre-release version.
Diffstat (limited to 'libcgh.h')
-rw-r--r--libcgh.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libcgh.h b/libcgh.h
index 15a6979..f78391c 100644
--- a/libcgh.h
+++ b/libcgh.h
@@ -1,7 +1,8 @@
//Chrisoft Bullet Lab Remix HGE
//Chrisoft Game Helper header
//Copyright Chrisoft 2014
-//libcgh version 0004
+//libcgh version 0005
+//Last full compatible version 0002
//^Modify that when big change is made^
#include <hge.h>
#include <hgefont.h>
@@ -25,6 +26,7 @@ struct vector2d
x/=l;y/=l;
}
void Swap(){double t=x;x=y;y=t;}
+ void rotate(double rad){double tx=x*cos(rad)+y*sin(rad),ty=y*cos(rad)-x*sin(rad);x=tx,y=ty;}
friend vector2d operator -(vector2d a,vector2d b)
{
return vector2d(a.x-b.x,a.y-b.y);