~~ is a double NOT bitwise operator. It's essentially the same as Math.floor(n), except I think ~~ is sligthly faster and Math.floor(NaN) returns NaN, whereas ~~NaN returns 0.
Google is your friend, if you wanna know the specifics.
hi can you explain what does it mean ~~a, please)))
Yes, I was impressed that the angle was calculated instead of hard-coded.
I've put together a fork with only a 10 line diff that includes 2 example tests of the flexibility I was referring to.
My solution hard-coded every single radial, just had to give credit where it was due.
flexibility isn't always on the user side.........
There's no flexibility. The radials are hardcoded, and the angle will always be 45.
All the imports make the eggs taste better :)
I love the flexibility to add more radials. Awesome solution!
Thanks for the help!
ou could have edit your translation. ;)
Rejecting this one, so.
Ruby translation kumited, including updated description -- please check and approve :-)
I uh... mixed up the sample and actual tests... should be fixed in that branch lol
No random tests.
JS translation up here
Would love it if someone smarter than me looked it over / approved :)
In the future, we will only program in RegEx xD