11 #ifndef __stir_round_H__ 12 #define __stir_round_H__ 47 inline int round(
const float x);
52 inline int round(
const double x);
58 template <
int num_dimensions,
class elemT>
59 inline BasicCoordinate<num_dimensions, int>
round(
const BasicCoordinate<num_dimensions, elemT>& x);
72 template <
typename integerT>
73 inline void round_to(integerT& result,
const float x);
78 template <
int num_dimensions,
class integerT,
class elemT>
79 inline void round_to(BasicCoordinate<num_dimensions, integerT>& result,
const BasicCoordinate<num_dimensions, elemT>& x);
BasicCoordinate< num_dimensions, int > round(const BasicCoordinate< num_dimensions, elemT > &x)
Implements rounding of a BasicCoordinate object.
Definition: round.inl:78
Implementation of the stir::round functions.
This file declares class stir::BasicCoordinate and some functions acting on stir::BasicCoordinate obj...
void round_to(BasicCoordinate< num_dimensions, integerT > &result, const BasicCoordinate< num_dimensions, elemT > &x)
Implements rounding of a BasicCoordinate object to other integer types.
Definition: round.inl:88