Should there be a lineSegment primitive?
オープン
discussion
- 主要言語
- Haskell
- スター
- 1.3k
- フォーク
- 201
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
It's often awkward and confusing to use `polyline` to get a single line. Perhaps there should exist primitives `lineSegment` and `thickLineSegment` that take exactly two coordinate pairs as arguments (or just four numbers?), and produce a line segment.
Note that the other polygonal-style shapes: `polygon`, `curve`, and `closedCurve` and their thick and solid variants, depend on having at least three points, so there would be no need to do the same there.
コントリビューションガイド
調査の方向性
まず、Haskellコードベースにある既存のpolyline、polygon、curve、closedCurveプリミティブを読みます。2つの座標ペアまたは4つの数値が既存のAPIに適合するかを判断し、対応するlineSegmentとthickLineSegmentの動作を定義して、単一のセグメントでpolylineが不要になることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- haskell
- 領域
- computer-graphics
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100