Microsoft SDK for Java

setRotation

This method of the Direct3dRMFrame Class sets a frame rotating by the given angle around the given vector at each call to the tick or move method. The direction vector [x, y, z] is defined in the reference frame.

Syntax

public void setRotation(Direct3dRMFrame reference, float x, float y, float z, float theta);

Parameters

reference The Direct3dRMFrame object to be used as the reference.
x The x element of the vector, about which rotation occurs.
y The y element of the vector, about which rotation occurs.
z The z element of the vector, about which rotation occurs.
theta The rotation angle, in radians.

Remarks

The specified rotation changes the matrix with every render tick, unlike the addRotation method, which changes the objects in the frame only once.

See Also

addRotation, getRotation

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