This uses the pythagorean theorem to calculate the length of the PURPLE part of the triangle, called the hypotenuse. Move your mouse around to see what it does. >>> Press h to toggle hide/show. <<< The formula to calculate it is actually pretty simple: Hypotenuse = square root of (side*side + side*side) The variables on the top left corner will indicate the length of the hypothenuse in pixels and millimeters. This is very useful to know the length of the trajectory a sprite is making, and can be used in lots of games.