Closed Mithro86 closed 9 months ago
Great stuff, thanks for this.
I'm not a fan of the use of global
here. They're a little frowned upon and not used unless strictly necessary which I don't believe they are here. Lots of articles out there regarding the use of them. I would simply move that section of code to before your function definitions and remove the global assignments.
Corrected. Thanks for the input!
Awesome, thanks. I'll merge as soon as I can.
What is the normalize_vector
function doing within the function coords_relative_to_axis
? I ask since the results n_x
, n_y
and n_z
aren't used.
What is the
normalize_vector
function doing within the functioncoords_relative_to_axis
? I ask since the resultsn_x
,n_y
andn_z
aren't used.
Nice catch, I had made an error. I did a new pull request with the corrected one.
What is the
normalize_vector
function doing within the functioncoords_relative_to_axis
? I ask since the resultsn_x
,n_y
andn_z
aren't used.Nice catch, I had made an error. I did a new pull request with the corrected one.
It was pycharms catch, not mine. :-)
Useful script to get the coordinates of a point relative to an axis system.