| 586 | } |
| 587 | |
| 588 | void ODGeometry::getNormal(std::vector<std::pair<double, double>>& normals) const { |
| 589 | if (length() < 1e-6) { |
| 590 | return; |
| 591 | } |
| 592 | getTangent(normals); |
| 593 | for (auto& _np : normals) { |
| 594 | std::swap(_np.first, _np.second); |
| 595 | _np.second *= -1; |
| 596 | } |
| 597 | } |
| 598 | |
| 599 | void ODGeometry::getNormal(double s, double& x, double& y) const { |
| 600 | double alpha = getHeading(s) + pi * 0.5; |
no test coverage detected