| 622 | double ODParamLine::getCurvature(double soffset) const { return 0.0; } |
| 623 | |
| 624 | void 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 | |
| 636 | void ODParamLine::getGeom(double s, double& x, double& y) const { |
| 637 | if (length() < 1e-6) { |