This page has been translated automatically.
Программирование
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
Внимание! Эта версия документация УСТАРЕЛА, поскольку относится к более ранней версии SDK! Пожалуйста, переключитесь на самую актуальную документацию для последней версии SDK.
Внимание! Эта версия документации описывает устаревшую версию SDK, которая больше не поддерживается! Пожалуйста, обновитесь до последней версии SDK.

Unigine::Unigine::ivec4 Struct

Header:#include <UnigineMathLib.h>

Vector of 4 integer components.

To use this structure, include the UnigineMathLib.h file.

ivec4 Class

Members


ivec4(const __m128i & v)

Arguments

  • const __m128i & v

ivec4()

Default constructor that produces a zero vector.

ivec4(const ivec4 & v)

Initialization by a vector.

Arguments

  • const ivec4 & v - The value of the vector.

ivec4(int x, int y, int z, int w)

Initialization by scalars.

Arguments

  • int x - X component of the vector.
  • int y - Y component of the vector.
  • int z - Z component of the vector.
  • int w - W component of the vector.

explicit ivec4(int v)

Initialization by a scalar.

Arguments

  • int v - The value of the scalar.

explicit ivec4(const vec4 & v)

Initialization by a vector.

Arguments

  • const vec4 & v - The value of the vector.

explicit ivec4(const dvec4 & v)

Initialization by a vector of double components.

Arguments

  • const dvec4 & v - The value of the vector.

explicit ivec4(const bvec4 & v)

Initialization by a vector of byte components.

Arguments

  • const bvec4 & v - The value of the vector.

explicit ivec4(const int * v)

Initialization by a pointer to the vector.

Arguments

  • const int * v - Pointer to the vector.

void set(int x_, int y_, int z_, int w_)

Set vector.

Arguments

  • int x_ - X component of the vector.
  • int y_ - Y component of the vector.
  • int z_ - Z component of the vector.
  • int w_ - W component of the vector.

void set(const int * val)

Set vector.

Arguments

  • const int * val - Pointer to the vector.

void set(int val)

Arguments

  • int val

void set(const ivec4 & val)

Arguments

  • const ivec4 & val

int * get()

Get a pointer to the vector.

Return value

Pointer to the vector.

const int * get() const

Get a constant pointer to the vector.

Return value

Pointer to the vector.

void get(int * val)

Arguments

  • int * val

int length2()

__m128i operator __m128i()

const int * operator const int *()

const void * operator const void *()

int * operator int *()

void * operator void *()

ivec4 & operator*=(int val)

Scalar multiplication.

Arguments

  • int val - The value of the scalar.

Return value

The resulting vector.

ivec4 & operator*=(const ivec4 & val)

Vector multiplication.

Arguments

  • const ivec4 & val - The value of the vector.

Return value

The resulting vector.

ivec4 & operator+=(const ivec4 & val)

Vector addition.

Arguments

  • const ivec4 & val - The value of the vector.

Return value

The resulting vector.

ivec4 operator-() const

Vector negation.

Return value

The resulting vector.

ivec4 & operator-=(const ivec4 & val)

Vector subtraction.

Arguments

  • const ivec4 & val - The value of the vector.

Return value

The resulting vector.

ivec4 & operator/=(int val)

Scalar division.

Arguments

  • int val - The value of the scalar.

Return value

The resulting vector.

ivec4 & operator/=(const ivec4 & val)

Vector division.

Arguments

  • const ivec4 & val - The value of the vector.

Return value

The resulting vector.

ivec4 & operator<<=(int val)

Left bit shift.

Arguments

  • int val - The shift amount.

Return value

The resulting vector.

ivec4 & operator=(const __m128i & val)

Arguments

  • const __m128i & val

ivec4 & operator=(const ivec4 & val)

Arguments

  • const ivec4 & val

ivec4 & operator>>=(int val)

Right bit shift.

Arguments

  • int val - The shift amount.

Return value

The resulting vector.

int & operator[](int i)

Array access.

Arguments

  • int i - Array item index.

Return value

The array item.

int operator[](int i) const

Constant array access.

Arguments

  • int i - Array item index.

Return value

The array item.

void sse(const __m128i & val)

Arguments

  • const __m128i & val

__m128i sse()


int ONE

int ZERO

Last update: 03.07.2017
Build: ()