[Feature Request] Add angle and signed angle?
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Accessibilité débutants
- 45/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Domaine
- computer-graphics, game-dev
Piste de recherche
Commencez par src/Unity.Mathematics/math.cs, en particulier les lignes 98-111, et consultez les API math environnantes ainsi que la discussion pour toute décision des maintainers. Le travail est considéré comme terminé lorsque la fonctionnalité d’angle demandée dispose d’une API approuvée et est intégrée avec une vérification appropriée au projet.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- C#
- Étoiles
- 1.4k
- Forks
- 159
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de Unity-Technologies/Unity.Mathematics
-
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 55/100
-
Difficulté 4/5 3-5 jours Accessibilité débutants 45/100
-
64 Bit Quaternion RequestOuverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
Unity-Technologies/Unity.Mathematics#245 · 3 commentaires ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 42/100
Unity-Technologies/Unity.Mathematics#243 · 6 réactions ·
Toutes les issues de Unity-Technologies/Unity.Mathematics
Issues similaires
-
Wrong values of Kernel32.FileShare.Delete and Kernel32.FileAttributes.PosixSemanticsPeut-être pris @ElectLive l’a pris aujourd’hui. Ouvertebug good first issue help wanted
Difficulté 1/5 Moins d'une heure Accessibilité débutants 83/100
ForNeVeR/TruePath#241 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
files-community/Files#19047 ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
area:frontend bug FE hotspot:css P3
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
klasolsson81/jobbliggaren#2175 ·
Les mainteneurs répondent en général sous 1 jour
-
needs-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 71/100
elsa-workflows/elsa-foundation#2965 ·
Les mainteneurs répondent en général sous 1 jour