Drake
CubicPolynomial Class Reference

A cubic polynomial, f(p) = a + b*p + c*p^2 + d*p^3. More...

#include <drake/automotive/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
 
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
 
Implements CopyConstructible, CopyAssignable, MoveConstructible, MoveAssignable
 CubicPolynomial (const CubicPolynomial &)=default
 
CubicPolynomialoperator= (const CubicPolynomial &)=default
 
 CubicPolynomial (CubicPolynomial &&)=default
 
CubicPolynomialoperator= (CubicPolynomial &&)=default
 

Detailed Description

A cubic polynomial, f(p) = a + b*p + c*p^2 + d*p^3.

Constructor & Destructor Documentation

CubicPolynomial ( const CubicPolynomial )
default
CubicPolynomial ( CubicPolynomial &&  )
default
CubicPolynomial ( )
inline

Default constructor, all zero coefficients.

CubicPolynomial ( double  a,
double  b,
double  c,
double  d 
)
inline

Constructs a cubic polynomial given all four coefficients.

Here is the call graph for this function:

Member Function Documentation

double a ( ) const
inline

Here is the caller graph for this function:

double b ( ) const
inline

Here is the caller graph for this function:

double c ( ) const
inline

Here is the caller graph for this function:

double d ( ) const
inline

Here is the caller graph for this function:

double f_ddot_p ( double  p) const
inline

Evaluates the double-derivative d^2f/dp^2 at p.

double f_dot_p ( double  p) const
inline

Evaluates the derivative df/dp at p.

double f_p ( double  p) const
inline

Evaluates the polynomial f at p.

Here is the caller graph for this function:

double fake_gprime ( double  p) const
inline

Here is the call graph for this function:

CubicPolynomial& operator= ( const CubicPolynomial )
default
CubicPolynomial& operator= ( CubicPolynomial &&  )
default
double p_s ( double  s) const
inline

Returns the inverse of the path-length parameterization s_p(p).

double s_p ( double  p) const
inline

Returns the path-length s along the curve (p, f(p)) from p = 0 to p.

Here is the caller graph for this function:


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