-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add TAU constant #5
Comments
I tried to propose this a few years ago, but it was rejected :( |
FWIW, I agree with you and the rationale |
Well, Python got it now. Maybe that would convince some people. Anyhow, I kinda agree that it's somewhat gimmicky, but on the other hand I always think it's silly that I have to define it myself. It's the math constant I use most frequently. |
I made nearly the same argument. The "Python has it" point might be compelling |
you could always |
+1 for Tau. I'll call it that from now on instead of |
+1 link for TAU Tau replaces Pi - Numberphile: |
The last time Math.TAU was rejected because
(See meeting notes https://esdiscuss.org/notes/2014-07-31) I don't see how any of this has changed.
(See https://mail.mozilla.org/pipermail/es-discuss/2014-August/038635.html) And as there are no new and good insight, I doubt, that this will be accepted. Let us focus on more important additions to the Math object. |
FWIW, CSS has an angular unit This means, you should reconsider whether rad↔deg is really all that should be added, and whether the conversion functions make sense as proposed when considering more than two angular units.
|
implements rwaldron#5 τ implements rwaldron#14 φ etc.
With a TAU constant, defined as 2 * PI, a lot of the PI-related math becomes simpler. Furthermore, existing APIs, which use radians, such as
CanvasRenderingContext2D.arc()
, become easier to use because you can now express things in terms of turns. E.g. half a turn (TAU * 0.5) is half a circle.Canvas example (JSFiddle):
As one would expect, the result is half a circle going from 12 o'clock to 6 o'clock.
http://tauday.com/tau-manifesto
https://en.wikipedia.org/wiki/Turn_(geometry)#Tau_proposal
Processing: https://processing.org/reference/TAU.html
Python recently added TAU: https://docs.python.org/3.6/library/math.html#math.tau
tl;dr: Vi Hart - Pi Is (still) Wrong.
https://www.youtube.com/watch?v=jG7vhMMXagQ
The text was updated successfully, but these errors were encountered: