UNPKG

@three3d/tools

Version:

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

14 lines (8 loc) 528 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@three3d/tools](./tools.md) &gt; [FormatIVectorMemberToVector](./tools.formativectormembertovector.md) ## FormatIVectorMemberToVector type 如果 V 是 IVector 类型,则转为对应的 Vector 类型,否则,保持不变 **Signature:** ```typescript export type FormatIVectorMemberToVector<V> = V extends IVector4 ? Vector4 : (V extends IVector3 ? Vector3 : (V extends IVector2 ? Vector2 : V)); ```