Go to the documentation of this file.
45 #ifndef _INCLUDED_Field3D_Types_H_
46 #define _INCLUDED_Field3D_Types_H_
53 #ifdef FIELD3D_CUSTOM_MATH_LIB
54 # include FIELD3D_MATH_LIB_INCLUDE
70 Interval(
double start,
double end,
double step)
93 template <
typename From_T,
typename To_T>
99 if (std::numeric_limits<To_T>::is_integer) {
101 lowest = static_cast<From_T>(lowestTo);
104 lowest = static_cast<From_T>(lowestTo);
107 const From_T highest = static_cast<From_T>(highestTo);
111 }
else if (v > highest) {
119 #endif // Include guard
Interval(double start, double end, double step)
Default constructor.
double t1
The end of the interval (inclusive)
T max(const T a, const T2 b)
Max operation on mixed types.
double t0
The start of the interval (inclusive)
Represents a single integration interval. The interval is assumed to be inclusive,...
double stepLength
The world space step length that is reasonable to use for the given interval.
To_T clampForType(const From_T v)
std::vector< Interval > IntervalVec
T min(const T a, const T2 b)
Min operation on mixed types.