3 ms·
Quote: "Calculating diagonal pixel is easy, following this formula: SquareRoot(w x w + h x h)." Gee -- what's wrong with y = √(w² + h²)? It's much easier to in
by lutusp 12y ago
Quote: "Calculating diagonal pixel is easy, following this formula: SquareRoot(w x w + h x h)."
Gee -- what's wrong with y = √(w² + h²)? It's much easier to interpret.
- asadotzler 12y agomaybe because you can't easily type that into a calculator like the one in Spotlight or google.com?
- lutusp 12y agoFair enough, in that case: y = sqrt(w^2 + h^2)