This page has been translated automatically.
Programming
Fundamentials
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
Bounds-Related Classes
Containers
Controls-Related Classes
Engine-Related Classes
GUI-Related Classes
Node-Related Classes
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
Rendering-Related Classes
Utility Classes
Внимание! Эта версия документация УСТАРЕЛА, поскольку относится к более ранней версии SDK! Пожалуйста, переключитесь на самую актуальную документацию для последней версии SDK.
Внимание! Эта версия документации описывает устаревшую версию SDK, которая больше не поддерживается! Пожалуйста, обновитесь до последней версии SDK.

Unigine::ivec3 Struct

Vector of 3 integer components.

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

Unigine::ivec3Structure

Members


UNIGINE_DECLARE_USE_MEMORY UNIGINE_INLINE ivec3 ()

Default constructor that produces a zero vector.

UNIGINE_INLINE ivec3 (const ivec3 & v)

Initialization by a vector.

Arguments

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

UNIGINE_INLINE ivec3 (const ivec2 & v, int z)

Initialization by a vector and a scalar.

Arguments

  • const ivec2 & v - The value of the vector.
  • int z - Z component of the vector.

UNIGINE_INLINE ivec3 (int x, int y, int z)

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.

explicit UNIGINE_INLINE ivec3 (int v)

Initialization by a scalar: x=v, y=v, z=v.

Arguments

  • int v - The value of the vector.

explicit UNIGINE_INLINE ivec3 (const ivec2 & v)

Initialization by a two component vector: x=v.x, y=v.y, z=0.

Arguments

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

explicit UNIGINE_INLINE ivec3 (const ivec4 & v)

Initialization by a four component vector: x=v.x, y=v.y, z=v.z.

Arguments

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

explicit UNIGINE_INLINE ivec3 (const vec3 & v)

Initialization by a vector.

Arguments

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

explicit UNIGINE_INLINE ivec3 (const dvec3 & v)

Initialization by a vector of double components.

Arguments

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

explicit UNIGINE_INLINE ivec3 (const int * v)

Initialization by a pointer to the vector.

Arguments

  • const int * v - Pointer to the vector.

UNIGINE_INLINE ivec3 operator- () const

Vector negation.

Return value

The resulting vector.

UNIGINE_INLINE ivec3 & operator*= (int v)

Scalar multiplication.

Arguments

  • int v - The value of the scalar.

Return value

The resulting vector.

UNIGINE_INLINE ivec3 & operator*= (const ivec3 & v)

Vector multiplication.

Arguments

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

Return value

The resulting vector.

UNIGINE_INLINE ivec3 & operator/= (int v)

Scalar division.

Arguments

  • int v - The value of the scalar.

Return value

The resulting vector.

UNIGINE_INLINE ivec3 & operator/= (const ivec3 & v)

Vector division.

Arguments

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

Return value

The resulting vector.

UNIGINE_INLINE ivec3 & operator+= (const ivec3 & v)

Vector addition.

Arguments

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

Return value

The resulting vector.

UNIGINE_INLINE ivec3 & operator-= (const ivec3 & v)

Vector subtraction.

Arguments

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

Return value

The resulting vector.

UNIGINE_INLINE ivec3 & operator<<= (int v)

Left bit shift.

Arguments

  • int v - The shift amount.

Return value

The resulting vector.

UNIGINE_INLINE ivec3 & operator>>= (int v)

Right bit shift.

Arguments

  • int v - The shift amount.

Return value

The resulting vector.

UNIGINE_INLINE int & operator[] (int i)

Array access.

Arguments

  • int i - Array item index.

Return value

The array item.

UNIGINE_INLINE int operator[] (int i) const

Constant array access.

Arguments

  • int i - Array item index.

Return value

The array item.

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

Set vector.

Arguments

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

UNIGINE_INLINE void set (const int * v)

Set vector.

Arguments

  • const int * v - Pointer to the vector.

UNIGINE_INLINE int * get ()

Get a pointer to the vector.

Return value

Pointer to the vector.

UNIGINE_INLINE const int * get () const

Get a constant pointer to the vector.

Return value

Pointer to the vector.
Last update: 03.07.2017
Build: ()