From 1d05051ab16b2012c08f0405b4754f421aae4cf3 Mon Sep 17 00:00:00 2001 From: "chirs241097@gmail.com" Date: Tue, 4 Mar 2014 03:11:48 +0000 Subject: New level, remove more comments, more interfaces... I'm now preparing for the next public pre-release version. --- libcgh.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libcgh.h') 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 #include @@ -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); -- cgit v1.2.3