| 37 | } |
| 38 | |
| 39 | double LNLib::Interpolation::GetTotalChordLength(const std::vector<XYZ>& throughPoints) |
| 40 | { |
| 41 | int n = throughPoints.size() - 1; |
| 42 | double length = 0.0; |
| 43 | for (int i = 1; i <= n; i++) |
| 44 | { |
| 45 | length += throughPoints[i].Distance(throughPoints[i - 1]); |
| 46 | } |
| 47 | return length; |
| 48 | } |
| 49 | |
| 50 | std::vector<double> LNLib::Interpolation::GetChordParameterization(const std::vector<XYZ>& throughPoints) |
| 51 | { |