This page has been translated automatically.
Getting Started
Migrating to UNIGINE 2.0
C++ API Migration
UnigineScript
The Language
Core Library
Engine Library
Node-Related Classes
GUI-Related Classes
Plugins Library
High-Level Systems
Samples
Usage Examples
C++ API
API Reference
Integration Samples
Usage Examples
C++ Plugins
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

Variables

The following pre-defined variables are available.

dmat4 dmat4_identity

Description

4×4 identity matrix of double values. The last row of this matrix is always [0 0 0 1].

1000
0100
0010
0001

dmat4 dmat4_one

Description

A 4×4 matrix of double values filled with ones. The last row of this matrix is always [0 0 0 1].

1111
1111
1111
0001

dmat4 dmat4_zero

Description

A 4×4 matrix of double values filled with zeroes. The last row of this matrix is always [0 0 0 1].

0000
0000
0000
0001

dvec3 dvec3_epsilon

Description

A vector of three double values filled with 1E-6:

0.000001 0.000001 0.000001

dvec3 dvec3_infinity

Description

A vector of three double values filled with 1E+9:

100000000 100000000 100000000

dvec3 dvec3_one

Description

A vector of three double values filled with ones:

1 1 1

dvec3 dvec3_zero

Description

A vector of three double values filled with zeroes:

0 0 0

dvec4 dvec4_epsilon

Description

A vector of four double values filled with 1E-6:

0.000001 0.000001 0.000001 0.000001

dvec4 dvec4_infinity

Description

A vector of four double values filled with 1E+9:

100000000 100000000 100000000 100000000

dvec4 dvec4_one

Description

A vector of four double values filled with ones:

1 1 1 1

dvec4 dvec4_zero

Description

A vector of four double values filled with zeroes:

0 0 0 0

ivec3 ivec3_one

Description

A vector of three integer values filled with ones:

1 1 1

ivec3 ivec3_zero

Description

A vector of three integer values filled with zeroes:

0 0 0

ivec4 ivec4_one

Description

A vector of four integer values filled with ones:

1 1 1 1

ivec4 ivec4_zero

Description

A vector of four integer values filled with zeroes:

0 0 0 0

mat4 mat4_identity

Description

4×4 identity matrix of float values:

1000
0100
0010
0001

mat4 mat4_one

Description

A 4×4 matrix of float values filled with ones:

1111
1111
1111
1111

mat4 mat4_zero

Description

A 4×4 matrix of float values filled with zeroes:

0000
0000
0000
0000

quat quat_identity

Description

An identity quaternion:

0 0 0 1

vec3 vec3_epsilon

Description

A vector of three float values filled with 1E-6:

0.000001 0.000001 0.000001

vec3 vec3_infinity

Description

A vector of three float values filled with 1E+9:

100000000 100000000 100000000

vec3 vec3_one

Description

A vector of three float values filled with ones:

1 1 1

vec3 vec3_zero

Description

A vector of three float values filled with zeroes:

0 0 0

vec4 vec4_epsilon

Description

A vector of four float values filled with 1E-6:

0.000001 0.000001 0.000001 0.000001

vec4 vec4_infinity

Description

A vector of four float values filled with 1E+9:

100000000 100000000 100000000 100000000

vec4 vec4_one

Description

A vector of four float values filled with ones:

1 1 1 1

vec4 vec4_zero

Description

A vector of four float values filled with zeroes:

0 0 0 0
Last update: 2017-07-03
Build: ()