⚠ ネタバレ注意: 本サイトはSFアニメ「SOLAR LINE」の内容を詳細に分析しています。未視聴の方はご注意ください。
📝 AI生成コンテンツ: 本考証の大部分は AI(Claude Code 等)によって生成されています。内容の正確性については原作および引用元をご確認ください。

Task 582: Extract Geometry Helpers from Browser-Only Viewer to Testable Module

未着手 ← タスク一覧

Task 582: Extract Geometry Helpers from Browser-Only Viewer to Testable Module

Status: DONE

Description

orbital-3d-viewer.js contains geometry helper functions that are untestable

because they depend on Three.js (browser-only). The pure-math logic can be

extracted to orbital-3d-viewer-data.ts and tested in Node.js:

  1. arcControlPoint(from, to) → compute Bezier control point at angular midpoint
  2. arcControlPointLocal(from, to) → lateral offset for local scenes
  3. offsetFromPlanet(point, otherPoint, planetName, sceneType) → displace arc endpoint from planet center

The viewer.js will import these from the data module (via plain [x,y,z] arrays)

and convert to Three.js Vector3 at the call site.

Files