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