Speed of the Math Object in Javascript
<p>I'm working on a javascript application that makes intensive use of math operations, dozens of calls per mouse move. I've been working on others' people code as a starting point, and I often find work arounds for the native javascript Math, such as...</p>

<pre><code>var pi = Math.PI
var distance = (x * x) + (y * y) / R * R
var pixels = ~~(x/y)
</code></pre>

<p>Is there a significant performance hit for using the Math object? If so, what are some common workarounds?</p>
