Hi, I'm quite new to Python so bear with me....
I am trying to get the co-ordinates of a semicircle (or semi-oval) with numpy (maybe I need some other module too/instead(?)) and output those numbers with e.g. numpy.savetxt, for the purpose of using them (the co-ordinates) as the inputs for a particular parameter (in an external graphics program command-line interface).
So for instance, if the start of my semicircle is at position '50,50' (of a 100x100 grid) and I wish the line of the arc to end at '100,75' - I would want the output to show me the co-ordinates of each pixel that the line (arc) goes through.
Hopefully that's understandable, can anyone help please?
Thanks.
I have had a look at the np.arctan2 function but can't work out if that's what I need..
I am trying to get the co-ordinates of a semicircle (or semi-oval) with numpy (maybe I need some other module too/instead(?)) and output those numbers with e.g. numpy.savetxt, for the purpose of using them (the co-ordinates) as the inputs for a particular parameter (in an external graphics program command-line interface).
So for instance, if the start of my semicircle is at position '50,50' (of a 100x100 grid) and I wish the line of the arc to end at '100,75' - I would want the output to show me the co-ordinates of each pixel that the line (arc) goes through.
Hopefully that's understandable, can anyone help please?
Thanks.
I have had a look at the np.arctan2 function but can't work out if that's what I need..