MRPT  2.0.4
Macros | Functions
polynom_solver.cpp File Reference
#include "polynom_solver.h"
#include "vision-precomp.h"
#include <cmath>
#include <iostream>
Include dependency graph for polynom_solver.cpp:

Go to the source code of this file.

Macros

#define CV_PI   3.14159265358979323846
 

Functions

int solve_deg2 (double a, double b, double c, double &x1, double &x2)
 
int solve_deg3 (double a, double b, double c, double d, double &x0, double &x1, double &x2)
 Reference : Eric W. More...
 
int solve_deg4 (double a, double b, double c, double d, double e, double &x0, double &x1, double &x2, double &x3)
 Reference : Eric W. More...
 

Macro Definition Documentation

◆ CV_PI

#define CV_PI   3.14159265358979323846

Function Documentation

◆ solve_deg2()

int solve_deg2 ( double  a,
double  b,
double  c,
double &  x1,
double &  x2 
)

Definition at line 18 of file polynom_solver.cpp.

Referenced by solve_deg3().

Here is the caller graph for this function:

◆ solve_deg3()

int solve_deg3 ( double  a,
double  b,
double  c,
double  d,
double &  x0,
double &  x1,
double &  x2 
)

Reference : Eric W.

Weisstein. "Cubic Equation." From MathWorld–A Wolfram Web Resource. http://mathworld.wolfram.com/CubicEquation.html

Returns
Number of real roots found.

Definition at line 43 of file polynom_solver.cpp.

References CV_PI, R, and solve_deg2().

Referenced by solve_deg4().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ solve_deg4()

int solve_deg4 ( double  a,
double  b,
double  c,
double  d,
double  e,
double &  x0,
double &  x1,
double &  x2,
double &  x3 
)

Reference : Eric W.

Weisstein. "Quartic Equation." From MathWorld–A Wolfram Web Resource. http://mathworld.wolfram.com/QuarticEquation.html

Returns
Number of real roots found.

Definition at line 116 of file polynom_solver.cpp.

References mrpt::obs::gnss::b2, mrpt::obs::gnss::b3, R, and solve_deg3().

Referenced by mrpt::vision::pnp::p3p::solve_for_lengths().

Here is the call graph for this function:
Here is the caller graph for this function:



Page generated by Doxygen 1.8.14 for MRPT 2.0.4 Git: 33de1d0ad Sat Jun 20 11:02:42 2020 +0200 at sáb jun 20 17:35:17 CEST 2020