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
T max(const T a, const T2 b)
Max operation on mixed types.
Represents a single integration interval. The interval is assumed to be inclusive, i.e. [t0,t1].
double t0
The start of the interval (inclusive)
std::vector< Interval > IntervalVec
To_T clampForType(const From_T v)
T min(const T a, const T2 b)
Min operation on mixed types.
double stepLength
The world space step length that is reasonable to use for the given interval.
double t1
The end of the interval (inclusive)
Interval(double start, double end, double step)
Default constructor.