add standard case
fix error in length calculation
switch back to Math function for x squared
add last case, cleanup
correct order angle - length
example for iteration and coordinate to sgement

cleaned up example