38 #ifndef FCL_NARROWPHASE_DETAIL_POLYSOLVER_H 39 #define FCL_NARROWPHASE_DETAIL_POLYSOLVER_H 62 static bool isZero(S v);
65 static bool cbrt(S v);
67 static constexpr S getNearZeroThreshold();
76 #include "fcl/math/detail/polysolver-inl.h" Main namespace.
Definition: broadphase_bruteforce-inl.h:45
static int solveQuadric(S c[3], S s[2])
Solve a quadratic function with coefficients c, return roots s and number of roots.
Definition: polysolver-inl.h:67
static int solveLinear(S c[2], S s[1])
Solve a linear equation with coefficients c, return roots s and number of roots.
Definition: polysolver-inl.h:57
A class solves polynomial degree (1,2,3) equations.
Definition: polysolver.h:48
static int solveCubic(S c[4], S s[3])
Solve a cubic function with coefficients c, return roots s and number of roots.
Definition: polysolver-inl.h:103