STIR
6.2.0
|
defines stir::modulo() and related functions More...
#include "stir/common.h"
Go to the source code of this file.
Namespaces | |
stir | |
Namespace for the STIR library (and some/most of its applications) | |
Functions | |
Functions for modulo computations | |
double | stir::modulo (const double a, const double b) |
Like std::fmod() but with guaranteed nonnegative result. More... | |
float | stir::modulo (const float a, const float b) |
modulo for floats More... | |
int | stir::modulo (const int a, const int b) |
Like the normal modulus operator (%) but with guaranteed nonnegative result. More... | |
template<int num_dimensions, typename T > | |
BasicCoordinate< num_dimensions, T > | stir::modulo (const BasicCoordinate< num_dimensions, T > &a, const BasicCoordinate< num_dimensions, T > &b) |
Performs the modulus operation on each element of the coordinates. More... | |
template<typename FloatOrDouble > | |
FloatOrDouble | stir::from_min_pi_plus_pi_to_0_2pi (const FloatOrDouble phi) |
A function to convert an angle from one range to another. More... | |
template<typename FloatOrDouble > | |
FloatOrDouble | stir::to_0_2pi (const FloatOrDouble phi) |
Convert angle to standard range. More... | |
defines stir::modulo() and related functions