UNPKG

@three3d/tools

Version:

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

26 lines (14 loc) 619 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@three3d/tools](./tools.md) &gt; [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)<!-- -->&lt;IVec&gt;, number\]