# Track transition curve

August 08, 2021
Enter values for the track width (guage), turn radius, angle and how
much of the curve is used to transition to from straight to the curve radious.

Uncheck the ease out option if the end of the curve should not transition back to straight.

Length of red line:

Turn size:

×

Save generated SVG image (mm)
Save generated SVG image (inch)
## Details

The image is generated as three separate curves after eachother:

- An Euler spiral from zero curvature to the curve radius.
- A circle arc with the curve radius.
- A reversed Euler spiral from the curve radius to zero curvature.

The Euler spirals are scaled to match the curvature to the circle arc where
they are connected.

### Pseudocode

- Divide the angle into the three separate curve parts; an Euler spiral, a circle arch and a reversed Euler spiral.
- Calculate the length of the first Euler spiral given the angle, then scale it so it ends with the correct curvature.
- Draw the Euler spiral using scaled Fresnel S and C integrals.
- Draw the circle arc.
- If ‘ease out’ is selected, draw the reversed Euler sprial, rotated and translated to the correct possition.

## References

- Track transition curve, Wikipedia. https://en.wikipedia.org/wiki/Track_transition_curve
- Euler spiral, Wikipedia. https://en.wikipedia.org/wiki/Euler_spiral
- Fresnel integral, Wikipedia. https://en.wikipedia.org/wiki/Fresnel_integral
- Power series, Wikipedia. https://en.wikipedia.org/wiki/Power_series