jdugge/xy2sn

Transform cartesian to curvilinear orthogonal coordinates, e.g. a flow-oriented coordinate system.

https://github.com/jdugge/xy2sn

You are now following this Submission

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

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

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.