I’m writing my first script to be more productive at work, and i’m facing a problem…
( i started programming 2 days ago, so please have mercy! )
Basically the script draw a curve with a given radius + height, and some aditionals line behind.
So far i got the math right, and it draw everything accordingly, except for the arc:
Avoid capital letters for ‘variables’ - Ruby sees these as Constants and although you can reset them, it will generate an unnecessary output: so r rather than R etc…
The swept angle between the start_point vertical radius [from the center to the start] and the end_point of the arc is something like: ang = Math.acos( (r - h) / r )
add/subtract that from the start_angle of -90.degrees…