15 #ifndef GEOMETRY__SOLVER__POLYNOMIAL_SOLVER_HPP_
16 #define GEOMETRY__SOLVER__POLYNOMIAL_SOLVER_HPP_
36 const double a,
const double b,
const double min_value = 0,
const double max_value = 1)
const
37 -> std::vector<double>;
46 const double a,
const double b,
const double c,
const double min_value = 0,
47 const double max_value = 1)
const -> std::vector<double>;
58 const double a,
const double b,
const double c,
const double d,
const double min_value = 0,
59 const double max_value = 1)
const -> std::vector<double>;
68 auto linear(
const double a,
const double b,
const double t)
const -> double;
78 auto quadratic(
const double a,
const double b,
const double c,
const double t)
const -> double;
89 auto cubic(
const double a,
const double b,
const double c,
const double d,
const double t)
const
112 auto solveMonicCubicEquationWithComplex(
const double a,
const double b,
const double c)
const
113 -> std::vector<std::complex<double>>;
120 const std::vector<double> & values,
const double min_value,
const double max_value)
const
121 -> std::vector<double>;
129 auto isApproximatelyEqualTo(
const double value0,
const double value1)
const -> bool;
Definition: polynomial_solver.hpp:26
auto linear(const double a, const double b, const double t) const -> double
calculate result of linear function a*t + b
Definition: polynomial_solver.cpp:30
auto solveCubicEquation(const double a, const double b, const double c, const double d, const double min_value=0, const double max_value=1) const -> std::vector< double >
solve cubic function a*t^3 + b*t^2 + c*t + d = 0
Definition: polynomial_solver.cpp:99
auto cubic(const double a, const double b, const double c, const double d, const double t) const -> double
calculate result of cubic function a*t^3 + b*t^2 + c*t + d
Definition: polynomial_solver.cpp:41
auto solveQuadraticEquation(const double a, const double b, const double c, const double min_value=0, const double max_value=1) const -> std::vector< double >
solve quadratic equation a*x^2 + b*x + c = 0
Definition: polynomial_solver.cpp:75
auto quadratic(const double a, const double b, const double c, const double t) const -> double
calculate result of quadratic function a*t^2 + b*t + c
Definition: polynomial_solver.cpp:35
auto solveLinearEquation(const double a, const double b, const double min_value=0, const double max_value=1) const -> std::vector< double >
solve linear equation a*x + b = 0
Definition: polynomial_solver.cpp:47
constexpr static double tolerance
Hard coded parameter, tolerance of calculation results of the PolynomialSolver. This value was determ...
Definition: polynomial_solver.hpp:102
Definition: bounding_box.hpp:32