Microsoft DirectX 9.0 SDK Update (October 2004)

MatrixStack.Scale Method

Language:

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

Determines the product of the current matrix and the computed scale matrix composed from the given point (x, y, and z).

Definition

Visual Basic .NET Public Sub Scale( _
    ByVal x As Single, _
    ByVal y As Single, _
    ByVal z As Single _
)
C# public void Scale(
    float x,
    float y,
    float z
);
Managed C++ public: void Scale(
    float x,
    float y,
    float z
);
JScript .NET public function Scale(
    x : float,
    y : float,
    z : float
);

Parameters

x System.Single. Floating-point value that represents the scaling component in the x-direction.
y System.Single. Floating-point value that represents the scaling component in the y-direction.
z System.Single. Floating-point value that represents the scaling component in the z-direction.

Remarks

This method right-multiplies the current matrix by the computed scale matrix. The transformation is about the current world origin.

Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.

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