Correct mixed-up angles

The angle distortions at the second and third vertices in each triangle
seem to have been mixed up in the previous commit. I've checked, for a
few triangles, that the output of this commit is consistent with the law
of sines.
This commit is contained in:
Aaron Fenyes 2025-09-29 17:37:17 -07:00
parent a309870968
commit de4c2ef482
2 changed files with 117 additions and 117 deletions

View file

@ -44,7 +44,7 @@ if __name__ == '__main__':
for t in triangles:
print('Triangle {0}, {1}, {2}'.format(t[0], t[1], t[2]))
edge_distortions = collections.deque(
[distortions[(t[j], t[k])] for (j, k) in [(1, 2), (0, 2), (0, 1)]]
[distortions[(t[j], t[k])] for (j, k) in [(1, 2), (0, 1), (0, 2)]]
)
for k in range(3):
ang_distort = angle_distortion(edge_distortions)