Garfield++
4.0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
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-4.0
Heed
wcpplib
geometry
vfloat.h
Generated by
1.9.6