Code+Snippets

== =Code Snippets *for the Experienced*=

Here, we will put pieces of code for easier reference and so that we don't forget.

1. In the blank space where you can type code. We have nothing here at the moment.

2. Distance Function (this is used later)

code function CalcDistance (X1, X2, Y1, Y2) { a = X2 - X1; b = Y2 - Y1; c = Math.sqrt(a*a+b*b); return c; } code