Predicates.hpp
Go to the documentation of this file.
1 // ========================================================================================
2 // ApproxMVBB
3 // Copyright (C) 2014 by Gabriel Nützi <nuetzig (at) imes (d0t) mavt (d0t) ethz (døt) ch>
4 //
5 // This Source Code Form is subject to the terms of the Mozilla Public
6 // License, v. 2.0. If a copy of the MPL was not distributed with this
7 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 // ========================================================================================
9 
10 #ifndef ApproxMVBB_GeometryPredicates_Predicates_hpp
11 #define ApproxMVBB_GeometryPredicates_Predicates_hpp
12 
14 
15  /* On some machines, the exact arithmetic routines might be defeated by the */
16  /* use of internal extended precision floating-point registers. Sometimes */
17  /* this problem can be fixed by defining certain values to be volatile, */
18  /* thus forcing them to be stored to memory and rounded off. This isn't */
19  /* a great solution, though, as it slows the arithmetic down. */
20  /* */
21  /* To try this out, write "#define INEXACT volatile" below. Normally, */
22  /* however, INEXACT should be defined to be nothing. ("#define INEXACT".) */
23 
24  #define INEXACT /* Nothing */
25  /* #define INEXACT volatile */
26 
27  #define REAL double /* float or double */
28  #define REALPRINT doubleprint
29  #define REALRAND doublerand
30  #define NARROWRAND narrowdoublerand
31  #define UNIFORMRAND uniformdoublerand
32 
33 
34  REAL orient2d(REAL * pa,
35  REAL * pb,
36  REAL * pc);
37  REAL orient3d(REAL * pa,
38  REAL * pb,
39  REAL * pc,
40  REAL * pd);
41  REAL incircle(REAL * pa,
42  REAL * pb,
43  REAL * pc,
44  REAL * pd);
45  REAL insphere(REAL * pa,
46  REAL * pb,
47  REAL * pc,
48  REAL * pd,
49  REAL * pe);
50 }
51 
52 #endif
REAL incircle(REAL *pa, REAL *pb, REAL *pc, REAL *pd)
REAL insphere(REAL *pa, REAL *pb, REAL *pc, REAL *pd, REAL *pe)
#define REAL
Definition: Predicates.hpp:27
REAL orient2d(REAL *pa, REAL *pb, REAL *pc)
Definition: Predicates.cpp:907
REAL orient3d(REAL *pa, REAL *pb, REAL *pc, REAL *pd)


asr_approx_mvbb
Author(s): Gassner Nikolai
autogenerated on Mon Jun 10 2019 12:38:08