UNPKG

@three3d/tools

Version:

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

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