IMP logo
IMP Reference Guide  develop.d97d4ead1f,2024/11/21
The Integrative Modeling Platform
constants.h
Go to the documentation of this file.
1 /**
2  * \file IMP/constants.h \brief Various useful constants.
3  *
4  * Copyright 2007-2022 IMP Inventors. All rights reserved.
5  *
6  */
7 
8 #ifndef IMPKERNEL_CONSTANTS_H
9 #define IMPKERNEL_CONSTANTS_H
10 
11 #include <IMP/kernel_config.h>
12 #include <IMP/algebra/constants.h>
13 #include <cmath>
14 
15 IMPKERNEL_BEGIN_NAMESPACE
16 #if !defined(IMP_DOXYGEN) && !defined(SWIG)
17 static const double PI = algebra::PI;
18 #endif
19 
20 //! Use this value when you want to turn off maximum for restraint evaluation
21 IMPKERNELEXPORT extern const double NO_MAX;
22 /** Evaluation can return this value if limits are exceeded and
23  it is a ScoringFunction::evaluate_if_below() or
24  ScoringFunction::evaluate_if_good
25 */
26 IMPKERNELEXPORT extern const double BAD_SCORE;
27 IMPKERNEL_END_NAMESPACE
28 
29 #endif /* IMPKERNEL_CONSTANTS_H */
const double NO_MAX
Use this value when you want to turn off maximum for restraint evaluation.
static const double PI
the constant pi
const double BAD_SCORE
Various useful constants.