KQuaternion.setFromAxisAngle() method
从绕某个给定轴旋转给定角度的表示形式转换成四元数的表示形式,并设置到自己的数据成员。
Sets this quaternion from rotation specified by axis and angle. NOTE: the axis will be normalized.
Signature:
setFromAxisAngle(axis: KVector3d, angle: number): void;
Links: setFromAxisAngle(axis: KVector3d, angle: number): void;
Parameters
Parameter | Type | Description |
---|---|---|
axis | 输入给定轴。 The input specified axis. | |
angle | number | 输入旋转角度。 The input rotate angle in radians. |
Returns:
void