X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=include%2Fkmath.h;h=b3a877178cdf900827d5875f9854f642a946e842;hb=1d7b7b7dbb6c55678a969e1a60b5d340795a13cb;hp=a95c3c3c760e144f2155d5ad89d445647ff3aeec;hpb=0fdfdd911d663c031caa231b5ce7edf81642294f;p=ctsim.git diff --git a/include/kmath.h b/include/kmath.h index a95c3c3..b3a8771 100644 --- a/include/kmath.h +++ b/include/kmath.h @@ -1,3 +1,29 @@ +/***************************************************************************** +** This is part of the CTSim program +** Copyright (C) 1983-2000 Kevin Rosenberg +** +** $Id: kmath.h,v 1.4 2000/04/30 19:17:35 kevin Exp $ +** $Log: kmath.h,v $ +** Revision 1.4 2000/04/30 19:17:35 kevin +** Set up include files for conditional INTERACTIVE_GRAPHICS +** +** Revision 1.3 2000/04/28 14:14:16 kevin +** *** empty log message *** +** +** +** This program is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License (version 2) as +** published by the Free Software Foundation. +** +** This program is distributed in the hope that it will be useful, +** but WITHOUT ANY WARRANTY; without even the implied warranty of +** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +** GNU General Public License for more details. +** +** You should have received a copy of the GNU General Public License +** along with this program; if not, write to the Free Software +** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +******************************************************************************/ /****************************************************************************** * * FILE IDENTIFICATION @@ -62,6 +88,9 @@ typedef double *DMTX_1D; typedef DMTX_1D *DMTX_2D; typedef DMTX_2D *DMTX_3D; +typedef double GRFMTX_2D[3][3]; +typedef double GRFMTX_3D[4][4]; + union elem_val_un { /* holds an element value */ char c; int i; @@ -139,6 +168,8 @@ typedef struct matrix_st *MTXP; */ +/* cliprect.c */ +int cliprect(double *x1, double *y1, double *x2, double *y2, const double rect[4]); /* lnearest.c */ long int lnearest(double x); /* mtx_disp.c */