33 double Evaluate(
const double dist,
double &out_tan)
const {
void AcceptVisitor(RoadInfoVisitor &v) final
Describes a Cubic Polynomial so: f(x) = a + bx + cx^2 + dx^3.
RoadInfoElevation(double s, double a, double b, double c, double d)
This file contains definitions of common data structures used in traffic manager. ...
const geom::CubicPolynomial & GetPolynomial() const
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.
double Evaluate(const double dist, double &out_tan) const
const geom::CubicPolynomial _elevation