I’m not sure if it’s possible, but is there a more concise (or faster way) to do the following?
if(w > width) width = w;
I’m working on a project that does similar logic thousands of times per second, but it’s often more complex so I’d like to 1) make it faster if possible and 2) find a shorter way to write it for my own sanity.
** EDIT **
an example of something a bit longer
if(Math.abs(x) > this._boundingBox.width) this._boundingBox.width = Math.abs(x);
This would at least be shorter to type: