UNPKG

@three3d/tools

Version:

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

34 lines (20 loc) 815 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@three3d/tools](./tools.md) &gt; [computeIntersectionFactorOfLine\_Circle](./tools.computeintersectionfactorofline_circle.md) ## computeIntersectionFactorOfLine\_Circle() function 计算线和圆的交点比例 **Signature:** ```typescript export declare function computeIntersectionFactorOfLine_Circle<Vec extends VectorInstance>(line: [Vec, Vec], circle: { center: Vec; radius: number; }): number[]; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | line | \[Vec, Vec\] | | | circle | { center: Vec; radius: number; } | | **Returns:** number\[\] ## Remarks 比例指定的是: - 线的开始点为 0,结束点为 1;