54 #ifndef OPENMESH_UTILS_NUMLIMITS_HH
55 #define OPENMESH_UTILS_NUMLIMITS_HH
90 template <
typename Scalar>
95 static inline Scalar
min() {
return 0; }
97 static inline Scalar
max() {
return 0; }
99 static inline bool is_float() {
return false; }
100 static inline bool is_integer() {
return !NumLimitsT<Scalar>::is_float(); }
101 static inline bool is_signed() {
return true; }
107 inline bool NumLimitsT<float>::is_float() {
return true; }
110 inline bool NumLimitsT<double>::is_float() {
return true; }
113 inline bool NumLimitsT<long double>::is_float() {
return true; }
118 inline bool NumLimitsT<unsigned char>::is_signed() {
return false; }
121 inline bool NumLimitsT<unsigned short>::is_signed() {
return false; }
124 inline bool NumLimitsT<unsigned int>::is_signed() {
return false; }
127 inline bool NumLimitsT<unsigned long>::is_signed() {
return false; }
130 inline bool NumLimitsT<unsigned long long>::is_signed() {
return false; }
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:59
This class provides the maximum and minimum values a certain scalar type (int, float,...
Definition: NumLimitsT.hh:92
static Scalar max()
Return the maximum absolte value a scalar type can store.
Definition: NumLimitsT.hh:97
static Scalar min()
Return the smallest absolte value a scalar type can store.
Definition: NumLimitsT.hh:95