38 #ifndef FCL_NARROWPHASE_DETAIL_POLYSOLVER_H 39 #define FCL_NARROWPHASE_DETAIL_POLYSOLVER_H 41 #include "fcl/export.h" 54 static int solveLinear(S c[2], S s[1]);
57 static int solveQuadric(S c[3], S s[2]);
60 static int solveCubic(S c[4], S s[3]);
64 static bool isZero(S v);
67 static bool cbrt(S v);
69 static constexpr S getNearZeroThreshold();
A class solves polynomial degree (1,2,3) equations.