Back to index

salome-med  6.5.0
Namespaces | Functions | Variables
VectorUtils.hxx File Reference
#include <sstream>
#include <numeric>
#include <string>
#include <cmath>
#include <map>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  INTERP_KERNEL

Functions

template<int SPACEDIM>
double INTERP_KERNEL::getDistanceBtw2Pts (const double *a, const double *b)
void INTERP_KERNEL::copyVector3 (const double *src, double *dest)
 Copies a double[3] vector from src to dest.
const std::string INTERP_KERNEL::vToStr (const double *pt)
 Creates a string representation of a double[3] vector.
void INTERP_KERNEL::add (const double *v, double *res)
 Adds a double[3] - vector to another one.
void INTERP_KERNEL::cross (const double *v1, const double *v2, double *res)
 Calculates the cross product of two double[3] - vectors.
double INTERP_KERNEL::dot (const double *v1, const double *v2)
 Calculates the dot product of two double[3] - vectors.
template<int dim>
double INTERP_KERNEL::norm (const double *v)
 Calculates norm of a double[3] vector.
bool INTERP_KERNEL::epsilonEqual (const double x, const double y, const double errTol=DEFAULT_ABS_TOL)
 Compares doubles using an absolute tolerance This is suitable mainly for comparisons with 0.0.
bool INTERP_KERNEL::epsilonEqualRelative (const double x, const double y, const double relTol=DEFAULT_REL_TOL, const double absTol=DEFAULT_ABS_TOL)
 Compares doubles using a relative tolerance This is suitable mainly for comparing larger values to each other.

Variables

const double INTERP_KERNEL::VOL_PREC = 1.0e-6
 Precision used for tests of 3D part of INTERP_KERNEL.
const double INTERP_KERNEL::DEFAULT_REL_TOL = 1.0e-6
 Default relative tolerance in epsilonEqualRelative.
const double INTERP_KERNEL::DEFAULT_ABS_TOL = 5.0e-12
 Default absolute tolerance in epsilonEqual and epsilonEqualRelative.