@d-healey yeah, there's withSizeKeepingCentre but that still requires fetching width and height first
Anyway, PR's up
- add centre-related methods to the Rectangle class by aaronventure · Pull Request #717 · christophhart/HISE
Added getCentre(), getCentreX() and getCentreY() from the base Rectangle class Added scaledCentre() which will perform factor scaling while keeping the same centre Removed that unused p because why...
GitHub (github.com)