How results are calculated
Crest position. The crest line CSV is treated as a polyline ordered by chainage. At chainage C, crest E, N and elevation are interpolated linearly between the two bracketing vertices.
Direction. The tangent is the unit vector from P(C−δ) to P(C+δ) (δ is a fraction of vertex spacing), so at a vertex it averages the two segments. Bearing = atan2(ΔE, ΔN). The right-hand normal is (tN, −tE), the left-hand normal (−tN, tE).
Slope. Between control points at C₁ and C₂, t = (C − C₁)/(C₂ − C₁). Toe elevation is interpolated with t. Height and offset:
Transition methods (only when n₁ ≠ n₂): linear ratio n = n₁ + t(n₂ − n₁); linear toe offset offset = O₁ + t(O₂ − O₁), n = offset/ΔH; linear angle θ = θ₁ + t(θ₂ − θ₁); smooth S-curve uses s = 3t² − 2t³ in place of t.
Curvature. Radius is the circumradius through P(C−Δ), P(C), P(C+Δ). On the inside of a curve the toe line is shorter than the crest line; if the toe offset reaches the radius, perpendicular offsets cross and the result is flagged.