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

Class Matrix4x4

bin/ts/ts/LayaAir.d.ts:11683–11892  ·  view source on GitHub ↗

* Matrix4x4 类用于创建4x4矩阵。

Source from the content-addressed store, hash-verified

11681 * <code>Matrix4x4</code> 类用于创建4x4矩阵。
11682 */
11683 class Matrix4x4 implements IClone {
11684 /**默认矩阵,禁止修改*/
11685 static DEFAULT: Matrix4x4;
11686 /**默认矩阵,禁止修改*/
11687 static ZERO: Matrix4x4;
11688 /**
11689 * 绕X轴旋转
11690 * @param rad 旋转角度
11691 * @param out 输出矩阵
11692 */
11693 static createRotationX(rad: number, out: Matrix4x4): void;
11694 /**
11695 *
11696 * 绕Y轴旋转
11697 * @param rad 旋转角度
11698 * @param out 输出矩阵
11699 */
11700 static createRotationY(rad: number, out: Matrix4x4): void;
11701 /**
11702 * 绕Z轴旋转
11703 * @param rad 旋转角度
11704 * @param out 输出矩阵
11705 */
11706 static createRotationZ(rad: number, out: Matrix4x4): void;
11707 /**
11708 * 通过yaw pitch roll旋转创建旋转矩阵。
11709 * @param yaw
11710 * @param pitch
11711 * @param roll
11712 * @param result
11713 */
11714 static createRotationYawPitchRoll(yaw: number, pitch: number, roll: number, result: Matrix4x4): void;
11715 /**
11716 * 通过旋转轴axis和旋转角度angle计算旋转矩阵。
11717 * @param axis 旋转轴,假定已经归一化。
11718 * @param angle 旋转角度。
11719 * @param result 结果矩阵。
11720 */
11721 static createRotationAxis(axis: Vector3, angle: number, result: Matrix4x4): void;
11722 setRotation(rotation: Quaternion): void;
11723 setPosition(position: Vector3): void;
11724 /**
11725 * 通过四元数创建旋转矩阵。
11726 * @param rotation 旋转四元数。
11727 * @param result 输出旋转矩阵
11728 */
11729 static createRotationQuaternion(rotation: Quaternion, result: Matrix4x4): void;
11730 /**
11731 * 根据平移计算输出矩阵
11732 * @param trans 平移向量
11733 * @param out 输出矩阵
11734 */
11735 static createTranslate(trans: Vector3, out: Matrix4x4): void;
11736 /**
11737 * 根据缩放计算输出矩阵
11738 * @param scale 缩放值
11739 * @param out 输出矩阵
11740 */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected