@three3d/tools
Version:
@three3d/tools 提供了 ThreeJS 常用的工具库
30 lines (18 loc) • 764 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@three3d/tools](./tools.md) > [getCurveULengths](./tools.getcurveulengths.md)
## getCurveULengths() function
获取曲线的累积段长度的列表。
**Signature:**
```typescript
export declare function getCurveULengths<T extends Vector>(curve: Curve<T>, divisions?: number): {
lengths: number[];
length: number;
};
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| curve | Curve<T> | 曲线 |
| divisions | number | _(Optional)_ 要将曲线划分为的分段数;默认是 <code>curve.arcLengthDivisions</code> |
**Returns:**
{ lengths: number\[\]; length: number; }