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

Method getInterval

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

Source from the content-addressed store, hash-verified

622double ODParamLine::getCurvature(double soffset) const { return 0.0; }
623
624void ODParamLine::getInterval(std::vector<double>& intervals) const {
625 if (length() < 1e-6) {
626 return;
627 }
628 intervals.clear();
629 int sp = static_cast<int>(std::ceil(length() / min_len));
630 double itv = length() / sp;
631 for (int i = 0; i <= sp; i++) {
632 intervals.push_back(itv * i);
633 }
634}
635
636void ODParamLine::getGeom(double s, double& x, double& y) const {
637 if (length() < 1e-6) {

Callers 1

roadIntervalMethod · 0.80

Calls 6

absFunction · 0.85
minFunction · 0.85
maxFunction · 0.85
lengthFunction · 0.50
clearMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected