Add X, Y, and Z unit vectors
This commit is contained in:
parent
99f98d2bf5
commit
fb6920e923
2 changed files with 6 additions and 0 deletions
|
@ -15,6 +15,9 @@
|
|||
#pragma mark - Vectors
|
||||
|
||||
const Vector3 Vector3::Zero = Vector3();
|
||||
const Vector3 Vector3::X = Vector3(1, 0, 0);
|
||||
const Vector3 Vector3::Y = Vector3(0, 1, 0);
|
||||
const Vector3 Vector3::Z = Vector3(0, 0, 1);
|
||||
|
||||
|
||||
/*
|
||||
|
|
|
@ -38,6 +38,9 @@ struct Vector3
|
|||
Vector3 &normalize();
|
||||
|
||||
static const Vector3 Zero;
|
||||
// Unit vectors in each of the three cartesian directions.
|
||||
static const Vector3 X, Y, Z;
|
||||
|
||||
float x, y, z;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue