Unigine::hvec4 Class
Header: | #include <UnigineMathLib.h> |
The hvec4 vector consists of 4 ushort (16-bit integer) values.
hvec4 Class
Members
hvec4()
Default constructor. Initialized the vector with four 0 values.hvec4(0,0,0,0);
hvec4(const hvec4 & v)
Constructor. Initializes the vector by copying given one.Arguments
- const hvec4 & v - hvec4 to be copied.
hvec4(half x, half y, half z, half w)
Constructor. Initializes the vector by using given half values.Arguments
- half x - The first component of the hvec4 vector.
- half y - The second component of the hvec4 vector.
- half z - The third component of the hvec4 vector.
- half w - The fourth component of the hvec4 vector.
hvec4(half v)
Constructor. Initializes the vector by using given half value.Arguments
- half v - Half value for all hvec4 components.
hvec4(float v)
Constructor. Initializes the vector by using given float value.Arguments
- float v - Float value for all hvec4 components.
hvec4(const vec4 & v)
Constructor. Initializes the vector by using given vec4 vector.Arguments
- const vec4 & v - vec4 value for corresponding hvec4 vector components.
hvec4(const dvec4 & v)
Constructor. Initializes the vector by using given dvec4 vector.Arguments
- const dvec4 & v - dvec4 value for corresponding hvec4 vector components.
const half * operator const Unigine::Math::half *()
const void * operator const void *()
half * operator Unigine::Math::half *()
void * operator void *()
hvec4 & operator=(const hvec4 & v)
Performs vector assignment. Source vector = Destination vector.Arguments
- const hvec4 & v - Destination vector.
Return value
Source vector.half & operator[](int i)
Performs array access to the vector item reference by using given item index.Arguments
- int i - Index of the vector item.
Return value
Vector item reference.half operator[](int i)
Performs array access to the vector item by using given item index.Arguments
- int i - Index of the vector item.
Return value
Vector item.int ONE
int ZERO
Last update: 2017-07-03
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)