❔ Circle
its an assignment I already turned in but would like some feedback as to why my check for radius boundary has been very wonky, i still had exceptions being thrown for it being out of bounds on my screen.
3 Replies
Take a look at Math.Min() and Math.Max(). Can you think of a way to only generate a radius once, guaranteeing that it will fit?
Also, what happens when x or y happens to be 0?
if x or y is zero then i would have to have the code rerun the generation of the x and y
thanks for the insight
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.