$search
A class solves polynomial degree (1,2,3) equations. More...
#include <intersect.h>
Static Public Member Functions | |
static int | solveCubic (BVH_REAL c[4], BVH_REAL s[3]) |
Solve a cubic function with coefficients c, return roots s and number of roots. | |
static int | solveLinear (BVH_REAL c[2], BVH_REAL s[1]) |
Solve a linear equation with coefficients c, return roots s and number of roots. | |
static int | solveQuadric (BVH_REAL c[3], BVH_REAL s[2]) |
Solve a quadratic function with coefficients c, return roots s and number of roots. | |
Static Private Member Functions | |
static bool | cbrt (BVH_REAL v) |
Compute v^{1/3}. | |
static bool | isZero (BVH_REAL v) |
Check whether v is zero. | |
Static Private Attributes | |
static const BVH_REAL | NEAR_ZERO_THRESHOLD = 1e-9 |
A class solves polynomial degree (1,2,3) equations.
Definition at line 49 of file intersect.h.
bool collision_checking::PolySolver::cbrt | ( | BVH_REAL | v | ) | [inline, static, private] |
Compute v^{1/3}.
Definition at line 51 of file intersect.cpp.
bool collision_checking::PolySolver::isZero | ( | BVH_REAL | v | ) | [inline, static, private] |
Check whether v is zero.
Definition at line 46 of file intersect.cpp.
Solve a cubic function with coefficients c, return roots s and number of roots.
Definition at line 98 of file intersect.cpp.
Solve a linear equation with coefficients c, return roots s and number of roots.
Definition at line 56 of file intersect.cpp.
Solve a quadratic function with coefficients c, return roots s and number of roots.
Definition at line 64 of file intersect.cpp.
const BVH_REAL collision_checking::PolySolver::NEAR_ZERO_THRESHOLD = 1e-9 [static, private] |
Definition at line 68 of file intersect.h.