![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <PolynomialRootSolver.h>
Public Member Functions | |
| TPolynomialRootSolver ()=default | |
| TPolynomialRootSolver (TArrayView< const RealType > PolyCoeffs, RealType RangeStart, RealType RangeEnd, RealType Tolerance=(RealType) UE_SMALL_NUMBER, int32 MaxNewtonIterations=20, RealType NearRootTolerance=(RealType) UE_SMALL_NUMBER) | |
| int32 | FindRootsInRange (TArrayView< const RealType > PolyCoeffs, RealType RangeStart, RealType RangeEnd, RealType Tolerance=(RealType) UE_SMALL_NUMBER, int32 MaxNewtonIterations=20, RealType NearRootTolerance=(RealType) UE_SMALL_NUMBER) |
Public Attributes | |
| TArray< RealType, TInlineAllocator< PolynomialDegree > > | Roots |
Find roots of a polynomial of a specified degree
|
default |
|
inline |
Find roots within the specified open interval (RangeStart, RangeEnd) (i.e. roots at either extreme are not returned)
| PolyCoeffs | The coefficients of the polynomial such that PolyCoeffs[i] is the coefficient of the x^i term. Must have at least PolynomialDegree + 1 elements. |
| RangeStart | Start of the open range to search for roots |
| RangeEnd | End of the open range to search for roots |
| Tolerance | Absolute tolerance for the returned root |
| MaxNewtonIterations | Maximum number of newton/bisection iterations to perform internally when finding a root |
| NearRootTolerance | Tolerance for finding almost-roots, i.e. cases where the polynomial just grazes 0 without crossing |
|
inline |
Find roots within the specified open interval (RangeStart, RangeEnd) (i.e. roots at either extreme are not returned)
| PolyCoeffs | The coefficients of the polynomial such that PolyCoeffs[i] is the coefficient of the x^i term. Must have at least PolynomialDegree + 1 elements. |
| RangeStart | Start of the open range to search for roots |
| RangeEnd | End of the open range to search for roots |
| Tolerance | Absolute tolerance for the returned roots |
| MaxNewtonIterations | Maximum number of newton/bisection iterations to perform internally when finding a root |
| NearRootTolerance | Tolerance for finding almost-roots, i.e. cases where the polynomial just grazes 0 without crossing |
| TArray<RealType, TInlineAllocator<PolynomialDegree> > UE::Math::TPolynomialRootSolver< RealType, PolynomialDegree >::Roots |