This convenient structure holds 3 variables and is primarily used to hold a point in the 3D world. It is used intensively throughout the engine.
| VB.NET | Public Structure TV_3DVECTOR Public x As Single, y, z End Structure |
|---|---|
| C++ | public: struct TV_3DVECTOR { float x, y, z; }; |
| C# | public struct TV_3DVECTOR { float x, y, z; }; |
| Name | Description |
|---|---|
| x | The x value of the vector |
| y | The y value of the vector |
| z | The z value of the vector |
| VB.NET | TV_3DVECTOR(ByVal x As Single, ByVal y As Single, ByVal z As Single) |
|---|---|
| C++ | TV_3DVECTOR(float x, float y, float z) |
C#.NET
TV_3DVECTOR vec1 = new TV_3DVECTOR(0.5f, 0.5f, 0.5f);