ANIMA
4.0
src
Anima
math-tools
special_functions
animaTrigonometricFunctions.hxx
Go to the documentation of this file.
1
#pragma once
2
3
#include "
animaTrigonometricFunctions.h
"
4
5
namespace
anima
6
{
7
8
template
<
class
T>
double
SinOverId
(
const
T &x)
9
{
10
double
resVal = x;
11
12
if
(std::abs(resVal) < 1e-4)
13
resVal = 1.0 - resVal * resVal / 6.0;
14
else
15
resVal = std::sin(resVal) / resVal;
16
17
return
resVal;
18
}
19
20
}
// end namespace anima
21
22
anima::SinOverId
double SinOverId(const T &x)
Definition:
animaTrigonometricFunctions.hxx:8
animaTrigonometricFunctions.h
anima
Definition:
animaDTIEstimationImageFilter.h:7
Generated by
1.8.13