Transform cartesian to curvilinear orthogonal coordinates, e.g. a flow-oriented coordinate system.
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Matlab functions to transform between cartesian (xy) and curvilinear orthogonal (sn) coordinates using a spline representation of a centerline.
Cite As
Juernjakob Dugge (2026). jdugge/xy2sn (https://github.com/jdugge/xy2sn), GitHub. Retrieved .
Acknowledgements
Inspired by: distance2curve, arclength, interparc
General Information
- Version 1.3.0.0 (10.7 KB)
-
View License on GitHub
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
Versions that use the GitHub default branch cannot be downloaded
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.3.0.0 | The s-coordinate is no longer normalised, but uses distance units. This is consistent with Merwade's description of the method. (Thanks to Chad Greene for raising this issue) |
||
| 1.2.0.0 | Dramatically increased performance by using a piecewise linear approximation for the smoothed centerline. |
||
| 1.1.0.0 | Added check for a bug in "distance2curve.m" |
||
| 1.0.0.0 |
