Memosa-FVM  0.2
ArrayScalarTraits< float > Struct Template Reference

#include <NumType.h>

Static Public Member Functions

static void limit (float &val, const double min, const double max)
 

Detailed Description

template<>
struct ArrayScalarTraits< float >

Definition at line 169 of file NumType.h.

Member Function Documentation

static void ArrayScalarTraits< float >::limit ( float &  val,
const double  min,
const double  max 
)
inlinestatic

Definition at line 171 of file NumType.h.

References max(), and min().

172  {
173  if (val < min)
174  val = min;
175  else if (val > max)
176  val = max;
177  }
double max(double x, double y)
Definition: Octree.cpp:18
double min(double x, double y)
Definition: Octree.cpp:23

The documentation for this struct was generated from the following file: