Re: Calculating Line Length
This brings us back to the discussion of how maths is vital to programming. Yes, if you work out the triangle using Pythagoras, you can calculate the length. Just make sure the program runs the calculations in the order you want it to, though - remember, the exponentiation will be performed before the addition.
|