mirror of
https://github.com/luau-lang/rfcs.git
synced 2025-05-04 10:43:48 +01:00
Create constant-tau.md
This commit is contained in:
parent
1486302eff
commit
bb9b227e95
1 changed files with 19 additions and 0 deletions
19
docs/constant-tau
Normal file
19
docs/constant-tau
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# Constant tau
|
||||||
|
|
||||||
|
## Summary
|
||||||
|
|
||||||
|
Implement a constant `math.tau` to hold the tau constant.
|
||||||
|
|
||||||
|
## Motivation
|
||||||
|
|
||||||
|
Currently the value of tau is used in trigonomic calculations through `math.pi * 2`.
|
||||||
|
|
||||||
|
The implementation of tau will simplify equations where otherwise math.pi * 2 may be used.
|
||||||
|
|
||||||
|
## Design
|
||||||
|
|
||||||
|
Define `math.tau` with the value `6.28318530717958647692528676655900577`
|
||||||
|
|
||||||
|
## Drawbacks
|
||||||
|
|
||||||
|
None
|
Loading…
Add table
Reference in a new issue