|
GigaPasjans
|
Represents a two component vector. Components are 32-bit and they are signed. More...
#include <Int2.h>

Public Member Functions | |
| constexpr | Int2 (const int32 x, const int32 y) |
| int32 * | GetValuePointer () |
| bool | operator== (const Int2 &right) const |
| Compares two Int2 values for equality. | |
| Int2 | operator+ (const Int2 &right) const |
| Adds two Int2 vectors. | |
| Int2 | operator- (const Int2 &right) const |
| Subtracts one Int2 vector from another. | |
| bool | operator< (const Int2 &right) const |
| Checks if both components of this vector are less than those of another. | |
| bool | operator> (const Int2 &right) const |
| Checks if both components of this vector are greater than those of another. | |
| bool | operator<= (const Int2 &right) const |
| Checks if both components of this vector are less than or equal to those of another. | |
| bool | operator>= (const Int2 &right) const |
| Checks if both components of this vector are greater than or equal to those of another. | |
| Int2 | operator+= (const Int2 &right) const |
| Adds another Int2 vector to this one and returns the result. | |
| Int2 | operator-= (const Int2 &right) const |
| Subtracts another Int2 vector from this one and returns the result. | |
| Int2 | operator* (const Int2 &right) const |
| Multiplies two Int2 vectors component-wise. | |
| Int2 | operator* (int32 value) const |
| Multiplies both components of the vector by a scalar. | |
| Int2 | operator/ (int32 value) const |
| Divides both components of the vector by a scalar. | |
Public Attributes | ||
| union { | ||
| struct { | ||
| int32 X | ||
| int32 Y | ||
| } | ||
| int32 Raw [2] | ||
| }; | ||
Static Public Attributes | |
| static const Int2 | Zero = Int2(0, 0) |
| static const Int2 | One = Int2(1, 1) |
Represents a two component vector. Components are 32-bit and they are signed.