Skip to content

dsh-geodesy v0.2.0

Latest

Choose a tag to compare

@TYEclipse TYEclipse released this 03 Sep 16:07
· 3 commits to main since this release

dsh-geodesy v0.2.0 — three new spherical-geometry tools

New tools

  • geo_rhumb — rhumb-line (constant-heading / loxodrome) distance and bearing between two points, with the great-circle distance for comparison. Keeps the same compass heading the whole way.
  • geo_intersection — crossing of two great-circle paths (start point + initial bearing each). Reports the crossing nearest to the first path's start, the antipodal crossing, and distances from both starts; coincident paths are rejected with a clear error.
  • geo_area — area and perimeter of a spherical polygon via spherical excess (Girard's theorem), pole-safe vector implementation, complement area always included, deterministic winding semantics.

Quality

  • 154 tests all green (39 new); every numeric anchor generated by an independent closed-form + numeric-integration oracle (test/anchors_v2.py), including the exact octant case (area = πR²/2), planar shoelace limits, and cross-track ≈ 0 checks for intersections.
  • Zero runtime dependencies, pure math, no network I/O.

Install: dsh plugin --profile web add github:TYEclipse/dsh-geodesy


中文 changelog

新增三个球面几何工具:geo_rhumb(恒向线/等角航线距离与恒定航向角,附大圆距离对比)、geo_intersection(两条大圆路径交点:最近交点+对跖交点+距两端起点距离,重合路径明确报错)、geo_area(球面多边形面积与周长,球面角盈公式,矢量实现极点安全,附互补区域面积)。154 个测试全绿,全部数值锚点由独立闭式+数值积分 oracle 脚本生成(含八分球精确例 πR²/2、平面鞋带公式极限交叉验证、交点横偏距≈0 校验)。零运行时依赖。