
// CommonStrokeTessellatorUtil.hpp - internal common declarations for control shader portion of polar stroking on CPU

#ifndef __CommonStrokeTessellatorUtil_hpp__
#define __CommonStrokeTessellatorUtil_hpp__

#include "CommonStrokeTessellatorPrivate.hpp"

#include <cmath>  // for floating-point abs
using std::abs;

// Place utilities here that reference uniform state.

// Used when testing if a quadratic coefficient is nearly zero.
bool StrokeTessellatorMETHOD isAlmostZero(float a) CONST
{
    return abs(a) < almost_zero_epsilon;
}

#endif // __CommonStrokeTessellatorUtil_hpp__
