MatrixFixed Structure
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Represents a matrix for fixed-point math operations.
Namespace: Microsoft.WindowsMobile.DirectX.Direct3D
Assembly: Microsoft.WindowsMobile.DirectX (in Microsoft.WindowsMobile.DirectX.dll)
Syntax
'Declaration
Public Structure MatrixFixed
'Usage
Dim instance As MatrixFixed
public struct MatrixFixed
public value class MatrixFixed
[<SealedAttribute>]
type MatrixFixed = struct end
Remarks
This structure represents a 4x4 matrix of FixedPoint values. 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.
Examples
The following examples shows how to use a MatrixFixed structure.
Sub DoDraw()
Dim matrWorld As MatrixFixed
Dim matrfxRotate As MatrixFixed = MatrixFixed.Identity
matrWorld = MatrixFixed.Multiply(matrfxRotate, New MatrixFixed(Matrix.RotationZ(System.Convert.ToSingle(Math.PI * 2.0))))
device.SetTransformFixed(TransformType.World, matrWorld)
Me.Refresh()
End Sub
void DoDraw()
{
MatrixFixed matrWorld;
MatrixFixed matrfxRotate = MatrixFixed.Identity;
matrWorld = (MatrixFixed.Multiply(matrfxRotate, new MatrixFixed(Matrix.RotationZ((float)(Math.PI * 2.0)))));
device.SetTransformFixed(TransformType.World, matrWorld);
this.Refresh();
}
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Compact Framework
Supported in: 3.5, 2.0
See Also
Reference
Microsoft.WindowsMobile.DirectX.Direct3D Namespace