maliput_multilane
|
A cubic polynomial, f(p) = a + b*p + c*p^2 + d*p^3.
#include <src/maliput_multilane/cubic_polynomial.h>
Public Member Functions | |
CubicPolynomial () | |
Default constructor, all zero coefficients. More... | |
CubicPolynomial (double a, double b, double c, double d) | |
Constructs a cubic polynomial given all four coefficients. More... | |
double | a () const |
double | b () const |
double | c () const |
double | d () const |
int | order () const |
Returns the order of the polynomial, based on its nonzero coefficients. More... | |
bool | is_zero () const |
Checks whether the polynomial is exactly zero. More... | |
double | f_p (double p) const |
Evaluates the polynomial f at p . More... | |
double | f_dot_p (double p) const |
Evaluates the derivative df/dp at p . More... | |
double | f_ddot_p (double p) const |
Evaluates the double-derivative d^2f/dp^2 at p . More... | |
double | s_p (double p) const |
Returns the path-length s along the curve (p, f(p)) from p = 0 to p . More... | |
double | p_s (double s) const |
Returns the inverse of the path-length parameterization s_p(p). More... | |
double | fake_gprime (double p) const |
CubicPolynomial | ( | ) |
Default constructor, all zero coefficients.
CubicPolynomial | ( | double | a, |
double | b, | ||
double | c, | ||
double | d | ||
) |
Constructs a cubic polynomial given all four coefficients.
double a | ( | ) | const |
double b | ( | ) | const |
double c | ( | ) | const |
double d | ( | ) | const |
double f_ddot_p | ( | double | p | ) | const |
Evaluates the double-derivative d^2f/dp^2 at p
.
double f_dot_p | ( | double | p | ) | const |
Evaluates the derivative df/dp at p
.
double f_p | ( | double | p | ) | const |
Evaluates the polynomial f at p
.
double fake_gprime | ( | double | p | ) | const |
bool is_zero | ( | ) | const |
Checks whether the polynomial is exactly zero.
int order | ( | ) | const |
Returns the order of the polynomial, based on its nonzero coefficients.
double p_s | ( | double | s | ) | const |
Returns the inverse of the path-length parameterization s_p(p).
double s_p | ( | double | p | ) | const |
Returns the path-length s along the curve (p, f(p)) from p = 0 to p
.