跳到主要内容

KEuler.setFromVector3() method

把一个向量的x,y,z分量分别当作x,y,z旋转分量并结合输入的旋转顺序order,设置到当前的欧拉角对象。

Set x, y, z angles and order from a vector3d. NOTE: v.x is the angle of x axis, and so on.

Signature:

setFromVector3(v: KVector3d, order?: KEulerOrder): void;

Links: setFromVector3(v: KVector3d, order?: KEulerOrder): void;

Parameters

Parameter

Type

Description

v

KVector3d

输入向量,x分量为绕x轴旋转的角度,以此类推向量的y,z分量。

The input vector, v.x is the angle of x axis, and so on.

order

KEulerOrder

(Optional) 输入绕x轴,y轴和z轴旋转的先后顺序, 默认使用当前欧拉角的旋转顺序。

The order in which to apply the rotations. Default order is current euler's order.

Returns:

void