When I was studying at the design school I used to do some really random interactive-graphics-thingies. I was playing around a bit with flash and actionscript 3 the other day and I ended up with this really random thing. You can play around with the mouse and click. Thats about it : ) was fun making though. I think i will keep on doing theese simple interactive graphics cause first of all it´s fun and second it´s a good way to learn how AS 3 works ! In this clip I tested some basic trigonometric functions. Here is a little trivia for you ! Pythagoras was born between 580 and 572 BC BC on Samos, a Greek island in the eastern Aegean. He was an Ionian Greek mathematician and founder of the religious movement called Pythagoreanism. Pythagoras once said that “number is the ruler of forms and ideas and the cause of gods and daemons.”

Pythagorean theorem. The sum of the areas of the two squares on the legs (a and b) equals the area of the square on the hypotenuse (c).
or, solved for c:
To use it in flash we use the formula below.
Distance formula in Cartesian coordinates is derived from the Pythagorean theorem. If (x0, y0) and (x1, y1) are points in the plane, then the distance between them, also called the Euclidean distance, is given by
To get the distance in 3D we just add the Z dimension to the formula above.