Transforms Class |
Language: |
Allows applications to specify and obtain matrix transformations; for example, the world, view, and transformation matrices used for Microsoft Direct3D object rendering.
Visual Basic NotInheritable Public Class Transforms
Inherits ObjectC# public sealed class Transforms : Object C++ public ref class Transforms sealed : Object JScript public final class Transforms extends Object
ObjectTransforms
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 ) );
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
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center