[vtkusers] macro to return type max, type min?

Dean Inglis dean.inglis at on.aibn.com
Tue Mar 19 14:56:29 EST 2002


 Is there, or could there be if there isn't, a simple macro defined in
vtkSetGet.h that would return the max or min of a given type: (I know this
isn't right, but you get the picture)

T GetMax(T)
{
  switch(T)
  {
  case float: return (T)VTK_FLOAT_MAX;
  etc.
  etc.

  }
}

Dean




More information about the vtkusers mailing list