calculating the shortest distance between a given point and a circle in a 2D coordinate space-using structures. Distance = |sqrt( (P_X - Center_X)^2 + (P_Y - Center_Y)^2) - Radius|
I am expected to write the structure definitions and the code that generates the distance result.
Please help me complete this program, some parts are editable and some are uneditable:
Comments
Leave a comment