Static Public Member Functions | Static Private Member Functions | List of all members
fcl::detail::PolySolver< S > Class Template Reference

A class solves polynomial degree (1,2,3) equations. More...

#include <polysolver.h>

Static Public Member Functions

static int solveCubic (S c[4], S s[3])
 Solve a cubic function with coefficients c, return roots s and number of roots. More...
 
static int solveLinear (S c[2], S s[1])
 Solve a linear equation with coefficients c, return roots s and number of roots. More...
 
static int solveQuadric (S c[3], S s[2])
 Solve a quadratic function with coefficients c, return roots s and number of roots. More...
 

Static Private Member Functions

static bool cbrt (S v)
 Compute v^{1/3}. More...
 
static constexpr S getNearZeroThreshold ()
 
static bool isZero (S v)
 Check whether v is zero. More...
 

Detailed Description

template<typename S>
class fcl::detail::PolySolver< S >

A class solves polynomial degree (1,2,3) equations.

Definition at line 50 of file polysolver.h.

Member Function Documentation

◆ cbrt()

template<typename S >
bool fcl::detail::PolySolver< S >::cbrt ( v)
staticprivate

Compute v^{1/3}.

Definition at line 186 of file polysolver-inl.h.

◆ getNearZeroThreshold()

template<typename S >
constexpr S fcl::detail::PolySolver< S >::getNearZeroThreshold
staticconstexprprivate

Definition at line 193 of file polysolver-inl.h.

◆ isZero()

template<typename S >
bool fcl::detail::PolySolver< S >::isZero ( v)
staticprivate

Check whether v is zero.

Definition at line 179 of file polysolver-inl.h.

◆ solveCubic()

template<typename S >
int fcl::detail::PolySolver< S >::solveCubic ( c[4],
s[3] 
)
static

Solve a cubic function with coefficients c, return roots s and number of roots.

Definition at line 103 of file polysolver-inl.h.

◆ solveLinear()

template<typename S >
int fcl::detail::PolySolver< S >::solveLinear ( c[2],
s[1] 
)
static

Solve a linear equation with coefficients c, return roots s and number of roots.

Definition at line 57 of file polysolver-inl.h.

◆ solveQuadric()

template<typename S >
int fcl::detail::PolySolver< S >::solveQuadric ( c[3],
s[2] 
)
static

Solve a quadratic function with coefficients c, return roots s and number of roots.

Definition at line 67 of file polysolver-inl.h.


The documentation for this class was generated from the following files:


fcl
Author(s):
autogenerated on Tue Dec 5 2023 03:40:51