UNPKG

@three3d/tools

Version:

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

30 lines (18 loc) 598 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@three3d/tools](./tools.md) &gt; [getLinesInfo](./tools.getlinesinfo.md) ## getLinesInfo() function 获取折线的信息 **Signature:** ```typescript export declare function getLinesInfo(points: Vector3[]): { lines: Line3[]; lengths: number[]; length: number; }; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | points | Vector3\[\] | | **Returns:** { lines: Line3\[\]; lengths: number\[\]; length: number; }