mirror of
https://github.com/godotengine/godot
synced 2024-11-02 12:55:22 +00:00
Define AXIS_COUNT in all vector types
This commit is contained in:
parent
ca1ebf9fee
commit
50fb0220ca
4 changed files with 8 additions and 0 deletions
|
@ -38,6 +38,8 @@ class String;
|
|||
struct Vector2;
|
||||
|
||||
struct _NO_DISCARD_ Vector2i {
|
||||
static const int AXIS_COUNT = 2;
|
||||
|
||||
enum Axis {
|
||||
AXIS_X,
|
||||
AXIS_Y,
|
||||
|
|
|
@ -38,6 +38,8 @@ class String;
|
|||
struct Vector3;
|
||||
|
||||
struct _NO_DISCARD_ Vector3i {
|
||||
static const int AXIS_COUNT = 3;
|
||||
|
||||
enum Axis {
|
||||
AXIS_X,
|
||||
AXIS_Y,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -38,6 +38,8 @@ class String;
|
|||
struct Vector4;
|
||||
|
||||
struct _NO_DISCARD_ Vector4i {
|
||||
static const int AXIS_COUNT = 4;
|
||||
|
||||
enum Axis {
|
||||
AXIS_X,
|
||||
AXIS_Y,
|
||||
|
|
Loading…
Reference in a new issue