Microsoft SDK for Java

setOrientation

This method of the Direct3dRMFrame Class aligns a frame so that its z-direction points along the direction vector [dx, dy, dz] and its y-direction aligns with the vector [ux, uy, uz].

Syntax

public void setOrientation(Direct3dRMFrame reference, float dx, float dy, float dz, float ux, float uy, float uz);

Parameters

reference The Direct3dRMFrame object to be used as the reference.
dx The new z axis for the frame.
dy The new z axis for the frame.
dz The new z axis for the frame.
ux The new y axis for the frame.
uy The new y axis for the frame.
uz The new y axis for the frame.

Remarks

The default orientation of a frame has a direction vector of [0, 0, 1] and an up vector of [0, 1, 0].

If [ux, uy, uz] is parallel to [dx, dy, dz], no action is taken; otherwise, the [ux, uy, uz] vector passed is projected onto the plane that is perpendicular to [dx, dy, dz].

See Also

getOrientation

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