omni::core::Int2
Defined in omni/core/Types.h
-
union Int2
- #include <omni/core/Types.h>
Helper struct to represent a single 2-space vector of signed integers.
Each member of the struct can be accessed in multiple ways including an array and direct accessors known by multiple names. Objects of this struct are guaranteed to be only as large as two 32-bit signed integers.
Public Members
-
int32_t data[2]
Access to the value members in this object as an array.
-
int32_t x
Provides access to the first data member as a Cartesian X coordinate.
-
int32_t u
Provides access to the first data member as a U texture coordinate.
-
int32_t s
Provides access to the first data member as an S texture coordinate.
-
int32_t w
Provides access to the first data member as a width value.
-
int32_t y
Provides access to the first data member as a Cartesian Y coordinate.
-
int32_t v
Provides access to the first data member as a V texture coordinate.
-
int32_t t
Provides access to the first data member as an T texture coordinate.
-
int32_t h
Provides access to the first data member as a height value.
-
int32_t data[2]