Welcome to the CSC Q&A.
Get help and give help!
Write great code!
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 (8 points)

2 Answers

+10 votes

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

answered by (583 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 (8 points)
...