59 #ifndef OPENMESH_UTILS_NUMLIMITS_HH
60 #define OPENMESH_UTILS_NUMLIMITS_HH
95 template <
typename Scalar>
100 static inline Scalar
min() {
return 0; }
102 static inline Scalar
max() {
return 0; }
104 static inline bool is_float() {
return false; }
105 static inline bool is_integer() {
return !NumLimitsT<Scalar>::is_float(); }
106 static inline bool is_signed() {
return true; }
112 inline bool NumLimitsT<float>::is_float() {
return true; }
115 inline bool NumLimitsT<double>::is_float() {
return true; }
118 inline bool NumLimitsT<long double>::is_float() {
return true; }
123 inline bool NumLimitsT<unsigned char>::is_signed() {
return false; }
126 inline bool NumLimitsT<unsigned short>::is_signed() {
return false; }
129 inline bool NumLimitsT<unsigned int>::is_signed() {
return false; }
132 inline bool NumLimitsT<unsigned long>::is_signed() {
return false; }
135 inline bool NumLimitsT<unsigned long long>::is_signed() {
return false; }
152 #endif // OPENMESH_NUMLIMITS_HH defined
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:64
static Scalar max()
Return the maximum absolte value a scalar type can store.
Definition: NumLimitsT.hh:102
static Scalar min()
Return the smallest absolte value a scalar type can store.
Definition: NumLimitsT.hh:100
This class provides the maximum and minimum values a certain scalar type (int, float, or double) can store.
Definition: NumLimitsT.hh:96