Result for polynomial root finding. Supports up to 4 real roots (for quartic equations).
More...
#include <MathUtils_Types.hxx>
Result for polynomial root finding. Supports up to 4 real roots (for quartic equations).
◆ IsDone()
| bool MathUtils::PolyResult::IsDone |
( |
| ) |
const |
|
inline |
Returns true if computation succeeded.
◆ operator bool()
| MathUtils::PolyResult::operator bool |
( |
| ) |
const |
|
inlineexplicit |
Conversion to bool for convenient checking.
◆ operator[]()
| double MathUtils::PolyResult::operator[] |
( |
int | theIndex | ) |
const |
|
inline |
Access root by index (0-based).
- Parameters
-
| theIndex | root index (0 to NbRoots-1) |
- Returns
- root value
◆ NbRoots
| size_t MathUtils::PolyResult::NbRoots = 0 |
Number of real roots found.
◆ Roots
| std::array<double, 4> MathUtils::PolyResult::Roots = {0.0, 0.0, 0.0, 0.0} |
Array of real roots (sorted)
◆ Status
The documentation for this struct was generated from the following file: