じろうの公開メモ

自分用のメモ置き場です

setOrientation


setOrientation

public void setOrientation(float angle,
float ax,
float ay,
float az)
Sets the orientation component of this Transformable. The orientation is specified such that looking along the rotation axis, the rotation is angle degrees clockwise. Note that the axis does not have to be a unit vector.

Parameters:
angle - angle of rotation about the axis, in degrees
ax - X component of the rotation axis
ay - Y component of the rotation axis
az - Z component of the rotation axis
Throws:
java.lang.IllegalArgumentException - if the rotation axis (ax ay az) is zero and angle is nonzero
See Also:
getOrientation, preRotate, postRotate
和訳:
この変換コンポーネントの向きを設定します。 こうした方向は、回転軸に沿って、回転角度angleが指定されています。注意して、軸の単位ベクトルである必要はありません。

向き決定か