Microsoft DirectX 9.0 SDK Update (October 2004)

Transforms Class

Language:

Note: This documentation is preliminary and is subject to change.

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 .NET NotInheritable Public Class Transforms
   Inherits Object 
C# public sealed class Transforms : Object
Managed C++ public __gc __sealed class Transforms  : public Object
JScript .NET public class Transforms extends Object

Members Table

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.
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

Object Leave 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.2902.0,  Culture=neutral,  PublicKeyToken=31bf3856ad364e35

See Also


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center