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, S s)
Solve a cubic function with coefficients c, return roots s and number of roots. More...

static int solveLinear (S c, S s)
Solve a linear equation with coefficients c, return roots s and number of roots. More...

static int solveQuadric (S c, S s)
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.

## ◆ cbrt()

template<typename S >
 bool fcl::detail::PolySolver< S >::cbrt ( S 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 ( S 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 ( S c, S s )
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 ( S c, S s )
static

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

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

template<typename S >
 int fcl::detail::PolySolver< S >::solveQuadric ( S c, S s )
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 Fri Apr 2 2021 02:38:03