# Matrix Structure

**.NET Framework 3.0**

Describes and manipulates a matrix.

**Namespace:** Microsoft.WindowsMobile.DirectX**Assembly:** Microsoft.WindowsMobile.DirectX (in microsoft.windowsmobile.directx.dll)

This structure represents a 4 × 4 matrix of single-precision floating-point numbers. The fields of this structure are named with the row number first, then the column number.

In Microsoft Windows Mobile Direct3D, the M34 element of a projection matrix cannot be a negative number. If an application needs to use a negative value in this location, it should scale the entire projection matrix by –1 instead.

The following example shows how to use a **Matrix** structure.

Show: