7#ifndef _MATH_QUINTIC_POLYNOMIAL_HPP_
8#define _MATH_QUINTIC_POLYNOMIAL_HPP_
51 return "QuinticPolynomial: {0: " + std::to_string(
a0) +
52 " 1: " + std::to_string(
a1) +
" 2: " + std::to_string(
a2) +
53 " 3: " + std::to_string(
a3) +
" 4: " + std::to_string(
a4) +
54 " 5: " + std::to_string(
a5) +
"}";
double calc_third_derivative(double t)
double a0
The coefficients for each term of the polynomial.
double calc_first_derivative(double t)
QuinticPolynomial(double s_p, double s_v, double s_a, double g_p, double g_v, double g_a, double t)
Defines the polynomial function for a spline in one dimension.
double calc_point(double t)
Calculates the values of the polynomial and its derivatives at the given time stamp.
std::string to_string() const
Serializes the Quintic Polynomial data for debugging.
double calc_second_derivative(double t)
Copyright 2020 Jonathan Bayless.