MCPcopy Create free account
hub / github.com/Tencent/TAD_Sim / sampleValue

Method sampleValue

common/map_sdk/map_import/src/OpenDriveStruct.cpp:235–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235bool Polynomial3D::sampleValue(const std::vector<double>& dis, std::vector<double>& value) const {
236 value.resize(dis.size());
237 for (size_t i = 0; i < dis.size(); ++i) {
238 value[i] = a + b * dis[i] + c * dis[i] * dis[i] + d * dis[i] * dis[i] * dis[i];
239 }
240 return true;
241}
242
243double Polynomial3D::value(const double& dis) const { return a + b * dis + c * dis * dis + d * dis * dis * dis; }
244

Callers 1

roadSlopeMethod · 0.80

Calls 2

resizeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected