Great thought process.
Man I was so close to this solution but unfortunately I didn't realize that you need to add a parenthesis enclosing all the statements.
Simple and neat, that makes it beautiful.
I wish i could downvote this ... ;)
You have to calculate (Math.Sqrt(Math.Pow(x, 2) + Math.Pow(y, 2) in the beginning many times. Will it be much better if you'll use a double variable for the result for the further checking?
One core principle of software developement is abstraction. Please use it.
+1 clever for Worst Practices. :)
Loading collection data...
Great thought process.
Man I was so close to this solution but unfortunately I didn't realize that you need to add a parenthesis enclosing all the statements.
Simple and neat, that makes it beautiful.
I wish i could downvote this ... ;)
You have to calculate (Math.Sqrt(Math.Pow(x, 2) + Math.Pow(y, 2) in the beginning many times. Will it be much better if you'll use a double variable for the result for the further checking?
One core principle of software developement is abstraction. Please use it.
+1 clever for Worst Practices. :)