MCPcopy
hub / github.com/layabox/LayaAir-v1 / ConchQuaternion

Class ConchQuaternion

bin/ts/ts/LayaAir.d.ts:11450–11676  ·  view source on GitHub ↗

* Quaternion 类用于创建四元数。

Source from the content-addressed store, hash-verified

11448 * <code>Quaternion</code> 类用于创建四元数。
11449 */
11450 class ConchQuaternion implements IClone {
11451 static TEMPVector30: ConchVector3;
11452 static TEMPVector31: ConchVector3;
11453 static TEMPVector32: ConchVector3;
11454 static TEMPVector33: ConchVector3;
11455 static TEMPMatrix0: Matrix4x4;
11456 static TEMPMatrix1: Matrix4x4;
11457 static _tempMatrix3x3: Matrix3x3;
11458 /**默认矩阵,禁止修改*/
11459 static DEFAULT: ConchQuaternion;
11460 /**无效矩阵,禁止修改*/
11461 static NAN: ConchQuaternion;
11462 /**
11463 * @private
11464 */
11465 static _dotArray(l: Float32Array, r: Float32Array): number;
11466 /**
11467 * @private
11468 */
11469 static _normalizeArray(f: Float32Array, o: Float32Array): void;
11470 /**
11471 * @private
11472 */
11473 static _lerpArray(l: Float32Array, r: Float32Array, amount: number, o: Float32Array): void;
11474 /**
11475 * 从欧拉角生成四元数(顺序为Yaw、Pitch、Roll)
11476 * @param yaw yaw值
11477 * @param pitch pitch值
11478 * @param roll roll值
11479 * @param out 输出四元数
11480 */
11481 static createFromYawPitchRoll(yaw: number, pitch: number, roll: number, out: ConchQuaternion): void;
11482 /**
11483 * 计算两个四元数相乘
11484 * @param left left四元数
11485 * @param right right四元数
11486 * @param out 输出四元数
11487 */
11488 static multiply(left: ConchQuaternion, right: ConchQuaternion, out: ConchQuaternion): void;
11489 /**
11490 * 从指定的轴和角度计算四元数
11491 * @param axis 轴
11492 * @param rad 角度
11493 * @param out 输出四元数
11494 */
11495 static createFromAxisAngle(axis: ConchVector3, rad: number, out: ConchQuaternion): void;
11496 /**
11497 * 根据3x3矩阵计算四元数
11498 * @param sou 源矩阵
11499 * @param out 输出四元数
11500 */
11501 static createFromMatrix3x3(sou: Matrix3x3, out: ConchQuaternion): void;
11502 /**
11503 * 从旋转矩阵计算四元数
11504 * @param mat 旋转矩阵
11505 * @param out 输出四元数
11506 */
11507 static createFromMatrix4x4(mat: Matrix4x4, out: ConchQuaternion): void;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected