UNPKG

@three3d/tools

Version:

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

26 lines (15 loc) 528 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@three3d/tools](./tools.md) &gt; [isCollinear](./tools.iscollinear.md) ## isCollinear() function 判断两个向量是否共线 **Signature:** ```typescript export declare function isCollinear<Vec extends VectorInstance>(vec1: Vec, vec2: Vec): boolean; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | vec1 | Vec | | | vec2 | Vec | | **Returns:** boolean