[Gcblue-commits] gcb_wx/include/common simmath.h,1.9,1.10
Status: Alpha
Brought to you by:
ddcforge
|
From: Dewitt C. <ddc...@us...> - 2004-04-03 15:51:50
|
Update of /cvsroot/gcblue/gcb_wx/include/common In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22160/include/common Modified Files: simmath.h Log Message: selection box drawing Index: simmath.h =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/include/common/simmath.h,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** simmath.h 7 Feb 2004 02:19:53 -0000 1.9 --- simmath.h 3 Apr 2004 15:39:31 -0000 1.10 *************** *** 43,46 **** --- 43,50 ---- float y; float DistanceTo(tcPoint p) {return (sqrtf((p.x-x)*(p.x-x)+(p.y-y)*(p.y-y)));} + + tcPoint() : x(0), y(0) {} + tcPoint(float ax, float ay) : x(ax), y(ay) {} + tcPoint(const tcPoint &p) : x(p.x), y(p.y) {} }; |