跳到主要内容

KVector3d.appliedQuaternion() method

对当前向量应用一个由四元数定义的旋转变换,得到一个新向量。

Return a new Vector which is the result of this vector transformed by the input quaternion.

Signature:

appliedQuaternion(quaternion: KQuaternion): KVector3d;

Links: appliedQuaternion(quaternion: KQuaternion): KVector3d;

Parameters

Parameter

Type

Description

quaternion

KQuaternion

四元数

the input quaternion which detines the rotation.

Returns:

KVector3d

得到一个新的向量。

The new vector.