59#ifndef OPENMESH_UTILS_NUMLIMITS_HH
60#define OPENMESH_UTILS_NUMLIMITS_HH
95template <
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; }
112inline bool NumLimitsT<float>::is_float() {
return true; }
115inline bool NumLimitsT<double>::is_float() {
return true; }
118inline bool NumLimitsT<long double>::is_float() {
return true; }
123inline bool NumLimitsT<unsigned char>::is_signed() {
return false; }
126inline bool NumLimitsT<unsigned short>::is_signed() {
return false; }
129inline bool NumLimitsT<unsigned int>::is_signed() {
return false; }
132inline bool NumLimitsT<unsigned long>::is_signed() {
return false; }
135inline 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:64
Collection of little utility classes and helpers.
This class provides the maximum and minimum values a certain scalar type (int, float,...
Definition NumLimitsT.hh:97
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