Transforms Class (Microsoft.DirectX.Direct3D)

Allows applications to specify and obtain matrix transformations; for example, the world, view, and transformation matrices used for Microsoft Direct3D object rendering.

Definition

Visual Basic NotInheritable Public Class Transforms
    Inherits ObjectLeave Site
C# public sealed class Transforms : ObjectLeave Site
C++ public ref class Transforms sealed : ObjectLeave Site
JScript public final class Transforms extends ObjectLeave Site

Members Table

The following table lists the members exposed by the object.

Methods

Method Description
GetWorldMatrixByIndex Retrieves a world matrix transform by its index.
SetWorldMatrixByIndex Sets the world matrix by its index.
ToString Obtains a string representation of the current instance.

Properties

Property Description
Projection Retrieves or sets the projection transformation Matrix.
Texture0 Retrieves or sets the Texture0 transformation Matrix.
Texture1 Retrieves or sets the Texture1 transformation Matrix.
Texture2 Retrieves or sets the Texture2 transformation Matrix.
Texture3 Retrieves or sets the Texture3 transformation Matrix.
Texture4 Retrieves or sets the Texture4 transformation Matrix.
Texture5 Retrieves or sets the Texture5 transformation Matrix.
Texture6 Retrieves or sets the Texture6 transformation Matrix.
Texture7 Retrieves or sets the Texture7 transformation Matrix.
View Retrieves or sets the view transformation matrix.
World Retrieves or sets the first world matrix.
World1 Retrieves or sets the second world matrix.
World2 Retrieves or sets the third world matrix.
World3 Retrieves or sets the fourth world matrix.

Inheritance Hierarchy

ObjectLeave Site

Transforms

Remarks

An instance of this class is stored in the Device.Transform property, which is typically used to manipulate matrices. For instance, the following line of C# code moves the View transform back five units, points the view at the origin, and defines "up" as the y-direction.

[C#]

device.Transform.View = Matrix.LookAtLH( 
            new Vector3( 0.0f, 3.0f,-5.0f ),
                        new Vector3( 0.0f, 0.0f, 0.0f ),
                        new Vector3( 0.0f, 1.0f, 0.0f ) );

Class Information

Namespace Microsoft.DirectX.Direct3D
Assembly Microsoft.DirectX.Direct3D (microsoft.directx.direct3d.dll)
Strong Name Microsoft.DirectX.Direct3D,  Version=1.0.900.0,  Culture=neutral,  PublicKeyToken=d3231b57b74a1492

See Also