# matrix_get

## Get the current values of the given matrix
type.

### Syntax:

matrix_get(type)

Argument |
Description |

type |
The type of matrix to get the values of (see the
*constants* listed below). |

**Returns:** Array

### Description

This function returns a 1D array of 16 values, corresponding to
the given 4x4 matrix type. The available matrices are view,
projection and world, for which you would use one of the following
constants:

Constant |
Description |

matrix_view |
The current view matrix |

matrix_projection |
The current projection matrix |

matrix_world |
The current world matrix |

### Example:

v_array = matrix_get(matrix_view);

The above code will get the values of the current view matrix
and populate the array "v_array" with them.

##### © Copyright YoYo Games Ltd. 2015 All Rights Reserved