@three3d/tools
Version:
@three3d/tools 提供了 ThreeJS 常用的工具库
26 lines (14 loc) • 619 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@three3d/tools](./tools.md) > [getVectorClass](./tools.getvectorclass.md)
## getVectorClass() function
获取 IVector 对应的 Vector 类
**Signature:**
```typescript
export declare function getVectorClass<IVec extends IVector>(vec: IVec): [IVectorToVectorClass<IVec>, number];
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| vec | IVec | |
**Returns:**
\[[IVectorToVectorClass](./tools.ivectortovectorclass.md)<!-- --><IVec>, number\]