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

@@ -19,8 +19,21 @@ struct Vector3 {
AXIS_X,
AXIS_Y,
AXIS_Z,
AXIS_COUNT
};
static const Vector3 ZERO;
static const Vector3 ONE;
static const Vector3 INF;
// Coordinate system of the 3D engine
static const Vector3 LEFT;
static const Vector3 RIGHT;
static const Vector3 UP;
static const Vector3 DOWN;
static const Vector3 FORWARD;
static const Vector3 BACK;
union {
struct {
real_t x;