View Single Post
11-20-13, 04:12 PM   #9
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
I'd have to say that "screenHeight" and "screenWidth" would be infinitely better variable names than "resMathVar1" and "resMathVar2" but if you're used to some language/framework with horrible variable naming conventions, I guess you can use those latter ones...

Also, in the example you posted, your comment is inaccurate... there isn't a variable named "resMathVar" at all, and neither of the similarly-named variables contain the calculated "resolution ratio" (I think you meant "aspect ratio"; I've never heard it called "resolution ratio" in any context).
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote