GraphiteEditor / GraphiteEditor/Graphite
Tangent on Path node unclear output
- Langage dominant
- Rust
- Étoiles
- 27.3k
- Forks
- 1.3k
- Merge moyen
- 20 h 5 min
- PR mergées (30 j)
- 57
Description
The « Tangent on Path » node returns an angle in degrees clockwise from the +X axis. However this is really not clear. The tooltip states:
> Determines the angle of the tangent at a point on the path, given by its progression from 0 to 1 along the path.
> If multiple subpaths make up the path, the whole number part of the progression value selects the subpath and the decimal part determines the position along it.
The angle of the tangent of a bézier curve is often expressed as a unit vector [such as on Pomax's bezierinfo](https://pomax.github.io/bezierinfo/#pointvectors). It is very easy for a user to assume that this might be the case (I did). This is especially true since non connected nodes do not get type hints about the output type. It is also possible that they do not know from where the angle is measured since it is never stated. Also why clockwise? I generally see anticlockwise from +X in e.g. argument of complex number.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Trouvez le nœud Tangent on Path et le texte de son tooltip, puis vérifiez comment le nœud expose sa sortie d’angle. Précisez que le résultat est un angle en degrés, indiquez qu’il est mesuré dans le sens des aiguilles d’une montre à partir de l’axe +X, et distinguez-le d’une sortie de vecteur unitaire. C’est terminé lorsque le tooltip supprime ces ambiguïtés sans modifier le comportement du nœud.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- rust
- Domaine
- documentation
- Type d'issue
- Documentation
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Activité
- Calme
- Clarté
- Plutôt claire
- Accessibilité débutants
- 68/100