定义一个三次多项式CubicPolynomial类,用于描述和计算三次多项式 f(x) = a + b * x + c * x^2 + d * x^3 更多...
#include <CubicPolynomial.h>
Public 类型 | |
using | value_type = double |
Public 成员函数 | |
CubicPolynomial ()=default | |
CubicPolynomial (const CubicPolynomial &)=default | |
CubicPolynomial (const value_type &a, const value_type &b, const value_type &c, const value_type &d) | |
CubicPolynomial (const value_type &a, const value_type &b, const value_type &c, const value_type &d, const value_type &s) | |
value_type | Evaluate (const value_type &x) const |
评估 f(x) = a + bx + cx^2 + dx^3 | |
value_type | GetA () const |
value_type | GetB () const |
value_type | GetC () const |
value_type | GetD () const |
value_type | GetS () const |
CubicPolynomial & | operator*= (const value_type &rhs) |
CubicPolynomial & | operator+= (const CubicPolynomial &rhs) |
void | Set (const value_type &a, const value_type &b, const value_type &c, const value_type &d) |
void | Set (const value_type &a, const value_type &b, const value_type &c, const value_type &d, const value_type &s) |
value_type | Tangent (const value_type &x) const |
使用 df/dx = b + 2cx + 3dx^2 计算正切值 | |
Private 属性 | |
value_type | _s |
std::array< value_type, 4 > | _v = {0.0, 0.0, 0.0, 0.0} |
友元 | |
CubicPolynomial | operator* (const value_type &lhs, CubicPolynomial rhs) |
CubicPolynomial | operator* (CubicPolynomial lhs, const value_type &rhs) |
CubicPolynomial | operator+ (CubicPolynomial lhs, const CubicPolynomial &rhs) |
定义一个三次多项式CubicPolynomial类,用于描述和计算三次多项式 f(x) = a + b * x + c * x^2 + d * x^3
在文件 CubicPolynomial.h 第 17 行定义.
using carla::geom::CubicPolynomial::value_type = double |
在文件 CubicPolynomial.h 第 20 行定义.
|
default |
|
default |
|
inline |
在文件 CubicPolynomial.h 第 33 行定义.
|
inline |
在文件 CubicPolynomial.h 第 42 行定义.
|
inline |
评估 f(x) = a + bx + cx^2 + dx^3
在文件 CubicPolynomial.h 第 118 行定义.
被这些函数引用 carla::road::element::RoadInfoElevation::Evaluate(), carla::road::element::GeometryPoly3::PreComputeSpline() , 以及 carla::road::element::GeometryParamPoly3::PreComputeSpline().
|
inline |
在文件 CubicPolynomial.h 第 59 行定义.
|
inline |
在文件 CubicPolynomial.h 第 64 行定义.
|
inline |
在文件 CubicPolynomial.h 第 69 行定义.
|
inline |
在文件 CubicPolynomial.h 第 74 行定义.
|
inline |
在文件 CubicPolynomial.h 第 79 行定义.
|
inline |
在文件 CubicPolynomial.h 第 147 行定义.
|
inline |
在文件 CubicPolynomial.h 第 133 行定义.
引用了 _v.
|
inline |
在文件 CubicPolynomial.h 第 102 行定义.
|
inline |
在文件 CubicPolynomial.h 第 88 行定义.
被这些函数引用 carla::road::element::GeometryParamPoly3::GeometryParamPoly3() , 以及 carla::road::element::GeometryPoly3::GeometryPoly3().
|
inline |
使用 df/dx = b + 2cx + 3dx^2 计算正切值
在文件 CubicPolynomial.h 第 124 行定义.
被这些函数引用 carla::road::element::RoadInfoElevation::Evaluate(), carla::road::element::GeometryPoly3::PreComputeSpline() , 以及 carla::road::element::GeometryParamPoly3::PreComputeSpline().
|
friend |
在文件 CubicPolynomial.h 第 161 行定义.
|
friend |
在文件 CubicPolynomial.h 第 155 行定义.
|
friend |
在文件 CubicPolynomial.h 第 141 行定义.
|
private |
在文件 CubicPolynomial.h 第 179 行定义.
|
private |
在文件 CubicPolynomial.h 第 176 行定义.
被这些函数引用 operator+=().