X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=include%2Fkmath.h;h=3b4a36ad30435d0fbbef347050177971979da277;hb=331b5c344271387790f735540510e2a07e4e42a7;hp=2a8145422162a0e1cf584a5ff29ed474872a91e5;hpb=2f71224f911d19adaa941d7553a9462a1aef7293;p=ctsim.git diff --git a/include/kmath.h b/include/kmath.h index 2a81454..3b4a36a 100644 --- a/include/kmath.h +++ b/include/kmath.h @@ -2,8 +2,14 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: kmath.h,v 1.7 2000/05/04 18:16:34 kevin Exp $ +** $Id: kmath.h,v 1.9 2000/05/08 20:00:48 kevin Exp $ ** $Log: kmath.h,v $ +** Revision 1.9 2000/05/08 20:00:48 kevin +** ANSI C changes +** +** Revision 1.8 2000/05/07 12:46:19 kevin +** made c++ compatible +** ** Revision 1.7 2000/05/04 18:16:34 kevin ** renamed filter definitions ** @@ -47,6 +53,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + #define PI 3.14159265358979323846 #define HALFPI 1.57079632679489661923 /* PI divided by 2 */ #define QUARTPI 0.78539816339744830962 /* PI divided by 4 */ @@ -214,12 +224,13 @@ void xlat_mtx2(GRFMTX_2D m, const double x, const double y); void scale_mtx2(GRFMTX_2D m, const double sx, const double sy); void rot_mtx2(GRFMTX_2D m, const double theta); void mult_mtx2(GRFMTX_2D m1, GRFMTX_2D m2, GRFMTX_2D result); -void xform_mtx2(GRFMTX_2D const m, double *x, double *y); +void xform_mtx2(GRFMTX_2D m, double *x, double *y); void rotate2d(double x[], double y[], int pts, double angle); void xlat2d(double x[], double y[], int pts, double xoffset, double yoffset); void scale2d(double x[], double y[], int pts, double xfact, double yfact); - - +#ifdef __cplusplus +} +#endif /* __cplusplus */ #endif