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.
|