Math
class CS-R1071Constants such as pi
, e
, and tau
are already defined in the Math
class. Consider using them instead of manually defining the literal yourself. This makes it easier to read and follow the code.
var pi = 3.14;
var pi = Math.PI;