Main Page
Namespaces
Classes
Files
File List
File Members
contrib
contact
clib3
/arith.h
Go to the documentation of this file.
1
/* */
2
/* Arithmetic Calculation Header */
3
/* */
4
/* Ver.1.0, Apr. 5,1988. for ssvdc() */
5
/* Ver.1.1, Jul.16,1988. for cone() */
6
/* Ver.1.2, Jul.22,1988. for cone() with face pointer */
7
8
#include <stdio.h>
9
#include <math.h>
10
#include <varargs.h>
11
12
#define MAX 50
13
#define MAXRANK 6
14
#define MAXEDGE 2000
15
#define EPS 1.0e-4
16
/* NSPACE is used for the threshold under which the singular value is zero. */
17
#define NSPACE 1.0e-4
18
#define UNIT 1.0e-4
19
#define EPS2 1.0e-4
20
#define TRUE 1
21
#define FALSE 0
22
#define EMPTY -1
23
#define COLLISION -2
24
#define HASHNO 15625
25
26
typedef
double
REAL
;
27
typedef
REAL
VECTOR
[
MAX
];
28
typedef
VECTOR
MATRIX
[
MAX
];
29
30
typedef
int
TABLE
[
HASHNO
];
31
32
typedef
int
LOGICAL
;
33
34
typedef
struct
line
{
35
int
index
;
36
int
next
;
37
int
last
;
38
int
face
[
MAXRANK
];
39
unsigned
int
plane
;
40
REAL
s
[
MAXRANK
];
41
}
LINE
;
42
43
44
45
46
MAX
#define MAX
Definition:
/arith.h:12
MAXRANK
#define MAXRANK
Definition:
/arith.h:13
TABLE
int TABLE[HASHNO]
Definition:
/arith.h:30
LOGICAL
int LOGICAL
Definition:
/arith.h:32
line::plane
unsigned int plane
Definition:
arith.h:38
REAL
double REAL
Definition:
arith.h:25
LINE
struct line LINE
VECTOR
REAL VECTOR[MAX]
Definition:
/arith.h:27
line::index
int index
Definition:
arith.h:34
line::face
int face[MAXRANK]
Definition:
arith.h:37
HASHNO
#define HASHNO
Definition:
/arith.h:24
line
Definition:
arith.h:33
line::last
int last
Definition:
arith.h:36
line::s
REAL s[MAXRANK]
Definition:
arith.h:39
line::next
int next
Definition:
arith.h:35
MATRIX
VECTOR MATRIX[MAX]
Definition:
/arith.h:28
REAL
double REAL
Definition:
/arith.h:26
euslisp
Author(s): Toshihiro Matsui
autogenerated on Thu Jun 6 2019 20:00:43