Tau.js provides TAU
, a simpler alternative to Math.PI
.
Read more about why TAU
reduces complexity at The Tau Manifesto and have a look at the example.
Download the library and include it in your html.
<script src="tau.js"></script>
TAU
is compatible to all standard Math
functions:
var x = Math.cos( TAU );
console.log( x ); // result: 1
Tau.js can also be used via AMD.
define( [ "path/to/TAU" ], function( TAU ) {
// ...
} );
If you want to support Tau.js, leave a comment on the support issue or contribute another example.