Merge pull request #66138 from aaronfranke/axis-count

Define AXIS_COUNT in all vector math types
This commit is contained in:
Rémi Verschelde 2022-09-20 09:43:51 +02:00
commit a04533f964
4 changed files with 8 additions and 0 deletions

View File

@ -38,6 +38,8 @@ class String;
struct Vector2;
struct _NO_DISCARD_ Vector2i {
static const int AXIS_COUNT = 2;
enum Axis {
AXIS_X,
AXIS_Y,

View File

@ -38,6 +38,8 @@ class String;
struct Vector3;
struct _NO_DISCARD_ Vector3i {
static const int AXIS_COUNT = 3;
enum Axis {
AXIS_X,
AXIS_Y,

View File

@ -37,6 +37,8 @@
#include "core/string/ustring.h"
struct _NO_DISCARD_ Vector4 {
static const int AXIS_COUNT = 4;
enum Axis {
AXIS_X,
AXIS_Y,

View File

@ -38,6 +38,8 @@ class String;
struct Vector4;
struct _NO_DISCARD_ Vector4i {
static const int AXIS_COUNT = 4;
enum Axis {
AXIS_X,
AXIS_Y,