[Feature Request] Add angle and signed angle?
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 45/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
調査の方向性
src/Unity.Mathematics/math.cs、特に 98-111 行目から始め、周辺の math API を、maintainer の決定に関する議論と併せて確認してください。要求された角度機能について合意された API が定まり、プロジェクトに適した検証とともに組み込まれれば完了です。
索引モデルが issue の本文から書いたものです。
説明
The greetings.
I have forked this master-branch and from this master-branch I have edited math.cs of which you can see here:
https://github.com/quakeulf/Unity.Mathematics/blob/master/src/Unity.Mathematics/math.cs
Specificially from line 98 to line 111 are my additions. I am also including them below this text so you can see in this field of text what I have proposed to add, but cannot, since I cannot seem to figure out how to do a request for pull:
/// <summary>Returns the angle in degrees from 0 to 180 between two float3s.</summary>
public static float angle(float3 from, float3 to)
{
return math.degrees(math.acos(math.dot(math.normalize(from), math.normalize(to))));
}
/// <summary>Returns the signed angle in degrees from 180 to -180 between two float3s.</summary>
public static float anglesigned(float3 from, float3 to)
{
float angle = math.acos(math.dot(math.normalize(from), math.normalize(to)));
float3 cross = math.cross(from, to);
angle *= math.sign(math.dot(math.up(), cross));
return math.degrees(angle);
}
If they are already in there, let me know where. Preferably through documentation on your webcite.
- 主要言語
- C#
- スター
- 1.4k
- フォーク
- 159
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Unity-Technologies/Unity.Mathematics のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
Unity-Technologies/Unity.Mathematics#245 · コメント 3 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
Unity-Technologies/Unity.Mathematics#243 · リアクション 6 件 ·
Unity-Technologies/Unity.Mathematics の issue をすべて見る
似ている issue
-
0 - Backlog Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
BrighterCommand/Brighter#4444 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
area:frontend bug FE P3
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
klasolsson81/jobbliggaren#1915 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
triage
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
microsoft/vscode-copilotstudio#431 ·
メンテナーはふだん 2 日以内に返信