Mantid
Loading...
Searching...
No Matches
Functions
IndexingUtils.cpp File Reference
#include "MantidGeometry/Crystal/IndexingUtils.h"
#include "MantidGeometry/Crystal/NiggliCell.h"
#include "MantidKernel/EigenConversionHelpers.h"
#include "MantidKernel/Quat.h"
#include <boost/math/special_functions/round.hpp>
#include <boost/numeric/conversion/cast.hpp>
#include <gsl/gsl_errno.h>
#include <gsl/gsl_fft_real.h>
#include <gsl/gsl_linalg.h>
#include <gsl/gsl_matrix.h>
#include <gsl/gsl_sys.h>
#include <gsl/gsl_vector.h>
#include <algorithm>
#include <cmath>

Go to the source code of this file.

Functions

bool withinTol (const double value, const double tolerance)
 

Function Documentation

◆ withinTol()

bool withinTol ( const double  value,
const double  tolerance 
)
inline
Parameters
valueThe value to check.
toleranceAllowable distance from integer.
Returns
True if the value is within tolerance of a whole number

Definition at line 2031 of file IndexingUtils.cpp.

References fabs, tolerance, and value.

Referenced by Mantid::Geometry::IndexingUtils::ValidIndex().