UNPKG

@three3d/tools

Version:

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

31 lines (19 loc) 763 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@three3d/tools](./tools.md) &gt; [getLengthsOfTs](./tools.getlengthsofts.md) ## getLengthsOfTs() function 获取u列表对应的曲线累积长度列表。 **Signature:** ```typescript export declare function getLengthsOfTs<T extends Vector>(curve: Curve<T>, ts: number[], isU?: boolean): { lengths: number[]; length: number; }; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | curve | Curve&lt;T&gt; | 曲线 | | ts | number\[\] | t 列表 | | isU | boolean | _(Optional)_ 是否将 ts 列表中的 t 作为 u 来使用 | **Returns:** { lengths: number\[\]; length: number; }