33 double Evaluate(
const double dist,
double &out_tan)
const {
Describes a Cubic Polynomial so: f(x) = a + bx + cx^2 + dx^3
value_type Evaluate(const value_type &x) const
Evaluates f(x) = a + bx + cx^2 + dx^3
value_type Tangent(const value_type &x) const
Evaluates the tangent using df/dx = b + 2cx + 3dx^2
void AcceptVisitor(RoadInfoVisitor &v) final
const geom::CubicPolynomial & GetPolynomial() const
const geom::CubicPolynomial _elevation
double Evaluate(const double dist, double &out_tan) const
RoadInfoElevation(double s, double a, double b, double c, double d)
This file contains definitions of common data structures used in traffic manager.