Added missing constants to Vector2, Vector3, Basis and Quat

This commit is contained in:
Marc Gilleron
2020-12-08 23:00:34 +00:00
parent 43828ebb39
commit 8e1cc29c66
12 changed files with 80 additions and 0 deletions

View File

@@ -10,6 +10,10 @@ typedef Vector2 Size2;
struct Rect2;
struct Transform2D {
static const Transform2D IDENTITY;
static const Transform2D FLIP_X;
static const Transform2D FLIP_Y;
// Warning #1: basis of Transform2D is stored differently from Basis. In terms of elements array, the basis matrix looks like "on paper":
// M = (elements[0][0] elements[1][0])
// (elements[0][1] elements[1][1])