Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+14 votes

Today in class I had a bit of trouble making ring topology look nice and it seemed to be because I had to use radians and not degrees.

Does anyone know how we could also make this work with degrees?

asked in CSC335_Spring2019 by (1 point)

2 Answers

+10 votes

Sure, just use Math.sin(Math.toRadians(angle))...

answered by (5.7k points)
+9 votes

Ya, Paul and I were also having this problem when trying to do it in degrees, where our nodes were doubling up around the circle. I was struggling to fix it and don't know if there is an easy fix to make it work in degrees.

answered by (1 point)
...