Bioplib
Protein Structure C Library
 All Data Structures Files Functions Variables Typedefs Macros Pages
MathType.h
Go to the documentation of this file.
1 /************************************************************************/
2 /**
3 
4  \file MathType.h
5 
6  \version V1.0R
7  \date 30.08.94
8  \brief Type definitions for maths
9 
10  \copyright (c) UCL / Dr. Andrew C. R. Martin 1993-4
11  \author Dr. Andrew C. R. Martin
12  \par
13  Institute of Structural & Molecular Biology,
14  University College London,
15  Gower Street,
16  London.
17  WC1E 6BT.
18  \par
19  andrew@bioinf.org.uk
20  andrew.martin@ucl.ac.uk
21 
22 **************************************************************************
23 
24  This code is NOT IN THE PUBLIC DOMAIN, but it may be copied
25  according to the conditions laid out in the accompanying file
26  COPYING.DOC.
27 
28  The code may be modified as required, but any modifications must be
29  documented so that the person responsible can be identified.
30 
31  The code may not be sold commercially or included as part of a
32  commercial product except as described in the file COPYING.DOC.
33 
34 **************************************************************************
35 
36  Description:
37  ============
38 
39 
40 **************************************************************************
41 
42  Usage:
43  ======
44 
45 **************************************************************************
46 
47  Revision History:
48  =================
49 
50 *************************************************************************/
51 #ifndef _MATHTYPE_H
52 #define _MATHTYPE_H
53 
54 /* This is for compilers running on machines such as Amigas, Macs and
55  older Sun workstations using 680X0 series processors with maths
56  coprocessors. This assumes that the symbol _M68881 is defined when
57  the compiler is run to use the maths coprocessor and that a file
58  called m68881.h is to be included to make full use of the coprocessor
59 */
60 #ifdef _M68881
61 #include <m68881.h>
62 #endif
63 
64 /* Note, that if this is changed to float, all I/O routines using type
65  REAL will need %lf's changing to %f's
66 */
67 typedef double REAL;
68 
69 typedef struct
70 { REAL x, y, z;
71 } VEC3F;
72 
73 typedef VEC3F COOR;
74 
75 /* Define PI if not done */
76 #ifndef PI
77 #define PI (4.0 * atan(1.0))
78 #endif
79 
80 #endif
VEC3F COOR
Definition: MathType.h:73
Definition: MathType.h:69
double REAL
Definition: MathType.h:67
REAL z
Definition: MathType.h:70