UNPKG

@three3d/tools

Version:

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

30 lines (18 loc) 728 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@three3d/tools](./tools.md) &gt; [computeIntersectionOfLineSegment\_Circle](./tools.computeintersectionoflinesegment_circle.md) ## computeIntersectionOfLineSegment\_Circle() function 计算线段和圆的交点 **Signature:** ```typescript export declare function computeIntersectionOfLineSegment_Circle<Vec extends VectorInstance>(line: [Vec, Vec], circle: { center: Vec; radius: number; }): Vec[]; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | line | \[Vec, Vec\] | | | circle | { center: Vec; radius: number; } | | **Returns:** Vec\[\]