# Matrix4

From RealMotion Wiki

**Types/Matrix4**

Generates a Matrix4 data type.

## Description

The box Matrix4 generates a fixed size container of four rows of Float4 numbers referred as x,y,z and w or, for colors, as r,g,b and a.

General Usecase : The Matrix4 is used with the box Shader 2D and the box Model Shader, which have input pins for the Matrix4. You can also use a converter to make a Matrix4 out of a transform. Finally, the box camera Component outputs some of the camera matrices.

## Inputs

Row 1 | Float4 | Receives a float4 for the first row of the Matrix. |

Row 2 | Float4 | Receives a float4 for the second row of the Matrix. |

Row 3 | Float4 | Receives a float4 for the third row of the Matrix. |

Row 4 | Float4 | Receives a float4 for the fourth row of the Matrix. |

## Outputs

Matrix4 | Matrix4 | Outputs the resulting Matrix4. |

## Parameters

### General

Enable Input Pins: Row | Toggle | Enables the Row Input Pin. |

Row 1 | Float4 | Sets the first row of the matrix with a Float4. |

Row 2 | Float4 | Sets the second row of the matrix with a Float4. |

Row 3 | Float4 | Sets the third row of the matrix with a Float4. |

Row 4 | Float4 | Sets the fourth row of the matrix with a Float4. |

## See Also

Model Shader, Float4,

#### Version Information

Current documentation version: 2.1.0.