Garfield++
3.0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Toggle main menu visibility
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
i
l
m
n
o
p
q
r
s
t
y
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
v
w
x
y
z
Typedefs
Enumerations
Enumerator
a
b
c
d
e
f
h
i
p
u
v
Related Functions
a
c
o
p
r
s
t
u
v
Files
File List
File Members
All
a
b
c
d
e
i
m
p
r
s
u
v
Functions
Typedefs
Macros
a
b
c
d
e
i
m
p
r
s
u
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Loading...
Searching...
No Matches
vfloat.h
Go to the documentation of this file.
1
#ifndef VFLOAT_H
2
#define VFLOAT_H
3
#include <cfloat>
4
#ifdef VISUAL_STUDIO
5
#define _USE_MATH_DEFINES
6
// see comment in math.h:
7
/* Define _USE_MATH_DEFINES before including math.h to expose these macro
8
* definitions for common math constants. These are placed under an #ifdef
9
* since these commonly-defined names are not part of the C/C++ standards.
10
*/
11
#endif
12
#include <cmath>
13
14
namespace
Heed
{
15
16
typedef
double
vfloat
;
17
const
vfloat
vprecision
= 1.0E-12;
18
static
const
vfloat
max_vfloat = DBL_MAX;
19
20
inline
bool
apeq
(
const
vfloat
f1,
const
vfloat
f2,
21
const
vfloat
prec =
vprecision
) {
22
return
(
fabs
(f1 - f2) <= prec);
23
}
24
25
}
26
27
#endif
Heed
Definition:
BGMesh.cpp:6
Heed::apeq
bool apeq(const circumf &f1, const circumf &f2, vfloat prec)
Definition:
circumf.cpp:44
Heed::fabs
DoubleAc fabs(const DoubleAc &f)
Definition:
DoubleAc.h:615
Heed::vprecision
const vfloat vprecision
Definition:
vfloat.h:17
Heed::vfloat
double vfloat
Definition:
vfloat.h:16
garfieldpp-3.0
Heed
wcpplib
geometry
vfloat.h
Generated by
1.9.6