跳到主要内容

KQuaternion.fromArray() method

从数组中读取数据,赋值给自己的数据成员。

Copy values (x, y, z and w) from an array with 4 elements.

Signature:

fromArray(array: number[]): void;

Parameters

Parameter

Type

Description

array

number[]

输入数组,含x, y, z, w信息。

The input array in [x, y, z, w].

Returns:

void