Ellipse arc length
I had to compute the length of arcs of Earth's meridian. I noticed that there was no analytical solution for this so I wrote this very simple function.
It computes the arc length of an ellipse centered on (0,0) with radius a (along OX) and radius b (along OY)
x(t) = a.cos(t)
y(t) = b.sin(t)
with angle t (in radians) between t1 and t2.
The solution is obtained numerically by dividing the arc in small straight segments. In addition, the second output is the length of the complete ellipse compyted with an approximated formula (Ramanujan).
Luc
Citar como
Luc Masset (2024). Ellipse arc length (https://www.mathworks.com/matlabcentral/fileexchange/26819-ellipse-arc-length), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- Mathematics and Optimization > Mapping Toolbox > Geometric Geodesy >
- Radar > Mapping Toolbox > Geometric Geodesy >
Etiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0.0 |