Core: Move Rect2i to its own rect2i.h header

And take the opportunity to improve interdependencies a bit with forward
declares where possible.
This commit is contained in:
Rémi Verschelde
2022-02-04 13:28:02 +01:00
parent 89eb6d372d
commit 5f56d385b0
14 changed files with 635 additions and 495 deletions

View File

@@ -30,6 +30,8 @@
#include "transform_2d.h"
#include "core/string/ustring.h"
void Transform2D::invert() {
// FIXME: this function assumes the basis is a rotation matrix, with no scaling.
// Transform2D::affine_inverse can handle matrices with scaling, so GDScript should eventually use that.