Skip to content

Commit

Permalink
Fix wrong changes in vpMath.h
Browse files Browse the repository at this point in the history
  • Loading branch information
fspindle committed Oct 27, 2023
1 parent 4c26fd7 commit 9730575
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions modules/core/include/visp3/core/vpMath.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@

#endif

#endif

#ifndef M_PIf
#define M_PIf 3.14159265358979323846f
#endif
Expand All @@ -89,6 +87,7 @@

#ifndef M_PI_4f
#define M_PI_4f (M_PIf / 4.0f)
#endif

#include <visp3/core/vpException.h>
#include <visp3/core/vpImagePoint.h>
Expand Down Expand Up @@ -194,9 +193,9 @@ class VISP_EXPORT vpMath
}
return (v < lower) ? lower : (upper < v) ? upper : v;
#endif
}
}

// round x to the nearest integer
// round x to the nearest integer
static inline int round(double x);

// return the sign of x (+-1)
Expand Down Expand Up @@ -331,14 +330,14 @@ class VISP_EXPORT vpMath
private:
static const double ang_min_sinc;
static const double ang_min_mc;
};
};

// Begining of the inline functions definition
// Begining of the inline functions definition

/*!
Computes and returns x!
\param x : parameter of factorial function.
*/
/*!
Computes and returns x!
\param x : parameter of factorial function.
*/
double vpMath::fact(unsigned int x)
{
if ((x == 1) || (x == 0))
Expand Down

0 comments on commit 9730575

Please sign in to comment.