UNPKG

@three3d/tools

Version:

@three3d/tools 提供了 ThreeJS 常用的工具库

29 lines (17 loc) 838 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@three3d/tools](./tools.md) &gt; [adjustOrientation](./tools.adjustorientation.md) ## adjustOrientation() function 生成一个用于调整方向的矩阵 **Signature:** ```typescript export declare function adjustOrientation(front: Vector3, up: Vector3, fixUp?: boolean | null, result?: Matrix3 | null): Matrix3; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | front | Vector3 | 表示前方的矩阵;会将 front 作为 z 轴 | | up | Vector3 | 表示上方的矩阵,会将 up 作为 y轴 | | fixUp | boolean \| null | _(Optional)_ 是否固定 up;保证up不变 | | result | Matrix3 \| null | _(Optional)_ 保存结果的变量 | **Returns:** Matrix3