@three3d/tools
Version:
@three3d/tools 提供了 ThreeJS 常用的工具库
31 lines (17 loc) • 647 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@three3d/tools](./tools.md) > [getSampleNum](./tools.getsamplenum.md)
## getSampleNum() function
获取采样数(整数)
**Signature:**
```typescript
export declare function getSampleNum(options: SampleOptions, length: number): number;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| options | [SampleOptions](./tools.sampleoptions.md) | 采样选项 |
| length | number | 曲线总长度 |
**Returns:**
number
## Remarks
优先使用 `sampleLength` 选项;