Microsoft SDK for Java

addRotation

This method of the Direct3dRMFrame Class adds a rotation about (x, y, z) by the number of radians specified in theta.

Syntax

public void addRotation(int typ, float x, float y, float z, float theta);

Parameters

typ A value of combine type that specifies how to combine the new rotation with any current frame transformation.
x The axis about which to rotate.
y The axis about which to rotate.
z The axis about which to rotate.
theta The angle of rotation, in radians.

Remarks

The specified rotation changes the matrix only for the frame identified by this object. This method changes the objects in the frame only once, unlike setRotation, which changes the matrix with every render tick.

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