matrix_build_identity


Description

This will build a 4x4 identity matrix with the following structure:

[1 0 0 0]
[0 1 0 0]
[0 0 1 0]
[0 0 0 1]


Syntax:

matrix_build_identity();


Returns:

Matrix index


Example:

i_matrix = matrix_build_identity();

The above code will create an identity matrix and store its index in a variable for future use.


Back: Matrix Functions
Next: matrix_build_lookat
© Copyright YoYo Games Ltd. 2018 All Rights Reserved