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版本。

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
Build: ()