GeoModel - GeoModelCore
Main Page
Related Pages
Classes
Files
File List
GeoGenericFunctions
src
Mod.cpp
1
//==========================================================================//
2
// Imported from the QAT library (qat.pitt.edu) by the copyright holder //
3
// Joe Boudreau. Software licensed under the terms and conditions of the //
4
// GNU Lesser Public License v3. //
5
//==========================================================================//
6
#include "GeoGenericFunctions/Mod.h"
7
#include <cmath>
8
#include <climits>
9
namespace
GeoGenfun
{
10
FUNCTION_OBJECT_IMP(Mod)
11
12
Mod::Mod(
double
y):
13
AbsFunction(),
14
_y(y)
15
{}
16
17
Mod::Mod(
const
Mod & right)
18
: AbsFunction(right), _y(right._y)
19
{}
20
21
Mod::~Mod() {
22
}
23
24
25
double
Mod::operator() (
double
x)
const
{
26
return
(x - _y*floor(x/_y));
27
}
28
29
}
// namespace GeoGenfun
GeoGenfun
Definition:
Abs.h:15
Generated on Thu May 28 2020 05:11:07 for GeoModel - GeoModelCore by
1.8.11