Represents a 2D vector of floats for use on both the CPU and GPU. More...
Functions | |
float2 (float m_x, float m_y) | |
Constructor : Creates a float2 whose elements have the specified values. More... | |
float2 | add (float2 b) |
float2 | sub (float2 b) |
Attributes | |
float | x |
the x component of the float2. More... | |
float | y |
the y component of the float2. More... | |
Represents a 2D vector of floats for use on both the CPU and GPU.
|
inline |
Constructor : Creates a float2 whose elements have the specified values.
m_x | value to assign to the x field |
m_y | value to assign to the y field |
Referenced by float2.add(), and float2.sub().
float x |
the x component of the float2.
Referenced by float2.add(), float2.float2(), and float2.sub().
float y |
the y component of the float2.
Referenced by float2.add(), float2.float2(), and float2.sub().