This page has been translated automatically.
Programming
Fundamentals
Setting Up Development Environment
UnigineScript
High-Level Systems
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
API
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Node-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
Rendering-Related Classes
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

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.
Source code (C++)
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
Build: ()