UNPKG

@three3d/tools

Version:

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

33 lines (19 loc) 1.15 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@three3d/tools](./tools.md) &gt; [adjustFrontUpFrame](./tools.adjustfrontupframe.md) ## adjustFrontUpFrame() function 调整由 front 和 up 决定的坐标系,以使其互相垂直 **Signature:** ```typescript export declare function adjustFrontUpFrame(front: Vector3, up: Vector3, fixUp?: boolean | null, binormalResult?: Vector3): FrontUpFrame; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | front | Vector3 | 已归一化的向前的方向;会作为 z 轴的方向; | | up | Vector3 | 已归一化的向上的方向;会作为 y 轴的方向 | | fixUp | boolean \| null | _(Optional)_ 是否固定up方向 | | binormalResult | Vector3 | _(Optional)_ 存储副法线的向量;会作为 x 轴的方向 | **Returns:** [FrontUpFrame](./tools.frontupframe.md) ## Remarks 为了节约性能,该方法会改变 front 和 up ; 遵守右手坐标系; front:会作为 z 轴的方向; up:会作为 y 轴的方向 binormal:会作为 x 轴的方向