UNPKG

@three3d/tools

Version:

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

34 lines (20 loc) 693 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@three3d/tools](./tools.md) &gt; [getProjectionLines](./tools.getprojectionlines.md) ## getProjectionLines() function 获取点的投影线 **Signature:** ```typescript export declare function getProjectionLines(point: Vector3, lines: Line3[]): { lines: Line3[]; indexs: number[]; }; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | point | Vector3 | | | lines | Line3\[\] | | **Returns:** { lines: Line3\[\]; indexs: number\[\]; } ## Remarks 投影线是点在线段上的垂足落在线段内的线