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

mat2 Class

mat2 Class

Members


mat2 ()

mat2 (const mat2 & m)

Arguments

  • const mat2 & m

mat2 (float v)

Arguments

  • float v

mat2 (const mat3 & m)

Arguments

  • const mat3 & m

mat2 (const mat4 & m)

Arguments

  • const mat4 & m

mat2 (const dmat4 & m)

Arguments

  • const dmat4 & m

mat2 (const float * m)

Arguments

  • const float * m

mat2 (const vec2 & col0, const vec2 & col1)

Arguments

  • const vec2 & col0
  • const vec2 & col1

float * get ()

Return value

void set (int row, int column, float v)

Arguments

  • int row
  • int column
  • float v

mat2 & operator*= (const mat2 & m)

Arguments

  • const mat2 & m

Return value

void set (const dmat4 & m)

Arguments

  • const dmat4 & m

mat2 & operator-= (const mat2 & m)

Arguments

  • const mat2 & m

Return value

void set (const mat4 & m)

Arguments

  • const mat4 & m

float & get (int row, int column)

Arguments

  • int row
  • int column

Return value

void sse (const __m128 & v)

Arguments

  • const __m128 & v

float operator[] (int i)

Arguments

  • int i

Return value

void get (float * m)

Arguments

  • float * m

vec2 getRow (int row)

Arguments

  • int row

Return value

mat2 operator- ()

Return value

void setIdentity ()

float & operator[] (int i)

Arguments

  • int i

Return value

const float * get ()

Return value

void set (const mat3 & m)

Arguments

  • const mat3 & m

mat2 & operator+= (const mat2 & m)

Arguments

  • const mat2 & m

Return value

mat2 & operator*= (float v)

Arguments

  • float v

Return value

__m128 sse ()

Return value

float get (int row, int column)

Arguments

  • int row
  • int column

Return value

vec2 getColumn (int column)

Arguments

  • int column

Return value

void setScale (const vec2 & v)

Arguments

  • const vec2 & v

void set (const float * m)

Arguments

  • const float * m

void setRotate (float angle)

Arguments

  • float angle

void setRow (int row, const vec2 & v)

Arguments

  • int row
  • const vec2 & v

void setColumn (int column, const vec2 & v)

Arguments

  • int column
  • const vec2 & v

void setZero ()

void set (const mat2 & m)

Arguments

  • const mat2 & m

mat2 & operator= (const mat2 & m)

Arguments

  • const mat2 & m

Return value

Last update: 2017-07-03