Define AXIS_COUNT in all vector types

This commit is contained in:
Aaron Franke 2022-09-19 17:50:35 -05:00
parent ca1ebf9fee
commit 50fb0220ca
No known key found for this signature in database
GPG key ID: 40A1750B977E56BF
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,