This documentation is archived and is not being maintained.

Matrix Structure

Defines a matrix.

Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

public struct Matrix : IEquatable<Matrix>

Matrices use a row vector layout in the XNA Framework. Matrices can be either row vector or column vector. Row vector matrices view vectors as a row from left to right, while column vector matrices view vectors as a column from top to bottom. For example, the x, y, and z of a matrix's translation vector in the XNA Framework would correspond to the fields M41, M42, M43.

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone 7