danbuis / BBDGamesLib

Code base to rapidly make Java based programs using OpenGL to render to the screen
0 stars 0 forks source link

Is this more or less efficient than Math.pow(arg,2)? #3

Closed boredompwndu closed 4 years ago

boredompwndu commented 4 years ago

https://github.com/danbuis/BBDGamesLib/blob/5070d0354bb3b66ca8f4d92588168adb1f9e2594/src/Geometry2d/BBDPoint.java#L70

boredompwndu commented 4 years ago

https://stackoverflow.com/questions/29144275/xx-vs-math-powx-2-java-performance

Apparently its equal