22 static const float PI_F = acos( -1.0f );
23 static const double PI_D = acos( -1.0f );
24 static const float HALF_PI_F = PI_F / 2.0f;
25 static const float TWO_PI_F = 2.0f * PI_F;
26 static const double EPSILON_D = 1.0e-6;
39 static void getLibraryVersion(
DAFFVersion& version );
46 static std::string StrDirection(
int iView,
double dAngle1Deg,
double dAngle2Deg,
int precision = 9,
int leadingzeros = 3 );
53 static std::string StrDirectionCompact(
int iView,
double dAngle1Deg,
double dAngle2Deg,
int precision = 9,
int leadingzeros = 3 );
56 static std::string StrError(
int iErrorcode );
59 static std::string StrContentType(
int iContentType );
62 static std::string StrShortContentType(
int iContentType );
65 static std::string StrMetadataKeyType(
int iKeyType );
68 static std::string StrQuantizationType(
int iQuantizationType );
81 static void NormalizeDirection(
int iView,
float fAngle1DegIn,
float fAngle2DegIn,
float& fAngle1DegOut,
float& fAngle2DegOut);
87 static std::string Float2StrNice(
float f,
int precision,
bool showpos,
int leadingzeros = 0 );
93 static std::string Double2StrNice(
double d,
int precision,
bool showpos,
int leadingzeros=0 );
101 return phi * DAFF::PI_F / 180.0f;
106 return phi * 180.0f / DAFF::PI_F;
111 return phi * DAFF::PI_D / 180.0f;
116 return phi * 180.0f / DAFF::PI_D;
125 #endif // IW_DAFF_UTILS static float rad2gradf(float phi)
Pure data class that covers version information.
static double rad2grad(double phi)
static float grad2radf(float phi)
Collection of utility functions.
static double grad2rad(double phi)