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
|
@ -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