@three3d/tools
Version:
@three3d/tools 提供了 ThreeJS 常用的工具库
27 lines (15 loc) • 881 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [/tools](./tools.md) > [computeIntersectionOfLineSegment\_LineSegment](./tools.computeintersectionoflinesegment_linesegment.md)
## computeIntersectionOfLineSegment\_LineSegment() function
计算线段和线段的交点
**Signature:**
```typescript
export declare function computeIntersectionOfLineSegment_LineSegment<Vec extends VectorInstance>(lineSegment1: [Vec, Vec], lineSegment2: [Vec, Vec]): import("three").Vector3 | import("three").Vector2 | import("three").Vector4 | null;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| lineSegment1 | \[Vec, Vec\] | |
| lineSegment2 | \[Vec, Vec\] | |
**Returns:**
import("three").Vector3 \| import("three").Vector2 \| import("three").Vector4 \| null