#ifndef WH_2DMATH_H_1b5b2228_ #define WH_2DMATH_H_1b5b2228_ typedef struct fpoint FPOINT; typedef struct ipoint IPOINT; struct fpoint { double x; double y; } ; struct ipoint { int x; int y; } ; extern FPOINT add2(FPOINT, FPOINT); extern FPOINT sub2(FPOINT, FPOINT); extern FPOINT scale2(FPOINT, double); extern double dot2(FPOINT, FPOINT); extern FPOINT unit2(FPOINT); extern double len2(FPOINT); extern double len22(FPOINT); extern double cross2(FPOINT, FPOINT); extern FPOINT sincos2(double); extern FPOINT r90(FPOINT); extern FPOINT i2f(IPOINT); extern IPOINT rf2i(FPOINT); #endif